From: Hollis Blanchard Date: Mon, 15 Dec 2008 23:32:04 +0000 Subject: Re: [PATCH 06/11] E500 instructions emulation Message-Id: <1229383924.4313.33.camel@localhost.localdomain> List-Id: References: <1228986705-9213-7-git-send-email-yu.liu@freescale.com> In-Reply-To: <1228986705-9213-7-git-send-email-yu.liu@freescale.com> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: kvm-ppc@vger.kernel.org On Thu, 2008-12-11 at 17:11 +0800, Liu Yu wrote: > + > +#define OP_RFI 19 > + > +#define XOP_RFI 50 > +#define XOP_MFMSR 83 > +#define XOP_WRTEE 131 > +#define XOP_MTMSR 146 > +#define XOP_WRTEEI 163 > +#define XOP_TLBIVAX 786 > +#define XOP_TLBSX 914 > +#define XOP_TLBRE 946 > +#define XOP_TLBWE 978 I'd prefer you use spaces for formatting (so that they look the same regardless of tabstop size), but no matter what you should be consistent (see OP_RFI vs XOP_RFI). > +static void kvmppc_emul_rfi(struct kvm_vcpu *vcpu) > +{ > + vcpu->arch.pc = vcpu->arch.srr0; > + kvmppc_set_msr(vcpu, vcpu->arch.srr1); > +} Actually, right now I'm wondering why rfi emulation isn't in the shared emulation code. Do you see any core-specific issues there? Same with wrtee* and m*msr. I bet I was thinking "we should have booke_emulate.c in the future" when I moved the 44x code. What do you think about that? -- Hollis Blanchard IBM Linux Technology Center