All of lore.kernel.org
 help / color / mirror / Atom feed
* kvm BookE and SPRGs
@ 2009-07-10  6:31 Benjamin Herrenschmidt
  2009-07-10  8:10 ` Benjamin Herrenschmidt
                   ` (11 more replies)
  0 siblings, 12 replies; 13+ messages in thread
From: Benjamin Herrenschmidt @ 2009-07-10  6:31 UTC (permalink / raw)
  To: kvm-ppc

Hi Hollis !

I was roaming through kernel usage of SPRGs and noticed a small detail
in kvmppc for BookE ... any reason why in OP_31_XOP_MTSPR, you
open coded the emulation of SPRG0..3, but 4...7 are handled
in kvmppc_core_emulate_mtspr() ?

It occurs to me that in fact for both MTSPR and MFSPR, the code should
be moved into kvmppc_core_emulate_mtspr() and
kvmppc_core_emulate_mfspr() for consistency.

Also, from looking at the FSL BookE code, it seems that there is such a
thing as SPRG9 (and so I suppose there must be an SPRG8 somewhere too),
shouldn't we handle it too ?

Cheers,
Ben.



^ permalink raw reply	[flat|nested] 13+ messages in thread

end of thread, other threads:[~2009-07-10 16:40 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-07-10  6:31 kvm BookE and SPRGs Benjamin Herrenschmidt
2009-07-10  8:10 ` Benjamin Herrenschmidt
2009-07-10  8:42 ` Alexander Graf
2009-07-10  9:09 ` Benjamin Herrenschmidt
2009-07-10  9:15 ` Liu Yu-B13201
2009-07-10  9:17 ` Benjamin Herrenschmidt
2009-07-10  9:25 ` Benjamin Herrenschmidt
2009-07-10  9:39 ` Benjamin Herrenschmidt
2009-07-10  9:42 ` Benjamin Herrenschmidt
2009-07-10  9:43 ` Alexander Graf
2009-07-10 10:50 ` Benjamin Herrenschmidt
2009-07-10 16:31 ` Hollis Blanchard
2009-07-10 16:40 ` Hollis Blanchard

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.