From: Ehrhardt Christian <ehrhardt-23VcF4HTsmIX0ybBhKVfKdBPR1lH4CV8@public.gmane.org>
To: kvm-ppc-u79uwXL29TY76Z2rM5mHXA@public.gmane.org,
kvm-u79uwXL29TY76Z2rM5mHXA@public.gmane.org,
avi-atKUWr5tajBWk0Htik3J/w@public.gmane.org
Cc: hollisb-r/Jw6+rmf7HQT0dZR+AlfA@public.gmane.org,
ehrhardt-23VcF4HTsmIX0ybBhKVfKdBPR1lH4CV8@public.gmane.org
Subject: [PATCH 01 of 10] [PATCH] kvm-userspace: powerpc: fix env->xer access
Date: Tue, 28 Oct 2008 16:52:29 +0100 [thread overview]
Message-ID: <0cc192e72183116c5896.1225209149@HelionPrime> (raw)
In-Reply-To: <patchbomb.1225209148@HelionPrime>
From: Christian Ehrhardt <ehrhardt-23VcF4HTsmIX0ybBhKVfKdBPR1lH4CV8@public.gmane.org>
Since qemu revision 5500 which was merged with the last qemu merge env->xer
is accessed directly.
Signed-off-by: Christian Ehrhardt <ehrhardt-23VcF4HTsmIX0ybBhKVfKdBPR1lH4CV8@public.gmane.org>
---
[diffstat]
qemu-kvm-powerpc.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
[diff]
diff --git a/qemu/qemu-kvm-powerpc.c b/qemu/qemu-kvm-powerpc.c
--- a/qemu/qemu-kvm-powerpc.c
+++ b/qemu/qemu-kvm-powerpc.c
@@ -57,7 +57,7 @@
regs.ctr = env->ctr;
regs.lr = env->lr;
- regs.xer = ppc_load_xer(env);
+ regs.xer = env->xer;
regs.msr = env->msr;
regs.srr0 = env->spr[SPR_SRR0];
@@ -93,7 +93,7 @@
env->ctr =regs.ctr;
env->lr = regs.lr;
- ppc_store_xer(env,regs.xer);
+ env->xer = regs.xer;
env->msr = regs.msr;
/* calculate hflags based on the current msr using the ppc qemu helper */
hreg_compute_hflags(env);
--
To unsubscribe from this list: send the line "unsubscribe kvm-ppc" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
next prev parent reply other threads:[~2008-10-28 15:52 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-10-28 15:52 [PATCH 00 of 10] kvm-userspace: ppc: userspace fixes for powerpc Ehrhardt Christian
2008-10-28 15:52 ` Ehrhardt Christian [this message]
2008-10-28 15:52 ` [PATCH 02 of 10] [PATCH] user: ppc: fix threading bugs in main-ppc.c Ehrhardt Christian
2008-10-28 15:52 ` [PATCH 03 of 10] [PATCH] user: ppc: better error reporting in load_file Ehrhardt Christian
2008-10-29 9:33 ` Avi Kivity
2008-10-29 9:50 ` Christian Ehrhardt
2008-10-28 15:52 ` [PATCH 04 of 10] [PATCH] user: ppc: implement PowerPC 44x libcflat Ehrhardt Christian
2008-10-28 15:52 ` [PATCH 05 of 10] [PATCH] libcflat: ppc: add timebase accessor Ehrhardt Christian
2008-10-28 15:52 ` [PATCH 06 of 10] [PATCH] user: ppc: add stub nmi handler Ehrhardt Christian
2008-10-28 15:52 ` [PATCH 07 of 10] [PATCH] qemu: ppc: define maximum SMP limit as 1 for Bamboo Ehrhardt Christian
2008-10-28 15:52 ` [PATCH 08 of 10] [PATCH] qemu: ppc: if not a uImage, try to load kernel as ELF Ehrhardt Christian
2008-10-28 15:52 ` [PATCH 09 of 10] [PATCH] kvm: external module: Treat NONARCH_CONFIG as a list Ehrhardt Christian
2008-10-28 15:52 ` [PATCH 10 of 10] [PATCH] kvm-userspace: ppc: fix initial ppc memory setup Ehrhardt Christian
2008-10-29 9:36 ` [PATCH 00 of 10] kvm-userspace: ppc: userspace fixes for powerpc Avi Kivity
2008-10-29 12:45 ` Avi Kivity
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=0cc192e72183116c5896.1225209149@HelionPrime \
--to=ehrhardt-23vcf4htsmix0ybbhkvfkdbpr1lh4cv8@public.gmane.org \
--cc=avi-atKUWr5tajBWk0Htik3J/w@public.gmane.org \
--cc=hollisb-r/Jw6+rmf7HQT0dZR+AlfA@public.gmane.org \
--cc=kvm-ppc-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
--cc=kvm-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox