From: Alexander Graf <agraf@suse.de>
To: qemu-ppc@nongnu.org
Cc: "Blue Swirl" <blauwirbel@gmail.com>,
qemu-devel@nongnu.org, "Aurélien Jarno" <aurelien@aurel32.net>
Subject: [Qemu-devel] [PATCH 5/9] PPC: Provide zero SVR for -cpu e500mc and e5500
Date: Fri, 18 Jan 2013 19:13:37 +0100 [thread overview]
Message-ID: <1358532821-23250-6-git-send-email-agraf@suse.de> (raw)
In-Reply-To: <1358532821-23250-1-git-send-email-agraf@suse.de>
Even though our -cpu types for e500mc and e5500 are no real CPUs that
actually have version registers, a guest might still want to access
said version register and that has to succeed for a guest to be happy.
So let's expose a zero SVR value on E500_SVR SPR reads.
Signed-off-by: Alexander Graf <agraf@suse.de>
---
target-ppc/translate_init.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/target-ppc/translate_init.c b/target-ppc/translate_init.c
index 3f199c4..2d78529 100644
--- a/target-ppc/translate_init.c
+++ b/target-ppc/translate_init.c
@@ -8633,9 +8633,9 @@ static const ppc_def_t ppc_defs[] = {
POWERPC_DEF("e500v2_v22", CPU_POWERPC_e500v2_v22, e500v2),
/* PowerPC e500v2 v3.0 core */
POWERPC_DEF("e500v2_v30", CPU_POWERPC_e500v2_v30, e500v2),
- POWERPC_DEF("e500mc", CPU_POWERPC_e500mc, e500mc),
+ POWERPC_DEF_SVR("e500mc", CPU_POWERPC_e500mc, POWERPC_SVR_E500, e500mc),
#ifdef TARGET_PPC64
- POWERPC_DEF("e5500", CPU_POWERPC_e5500, e5500),
+ POWERPC_DEF_SVR("e5500", CPU_POWERPC_e5500, POWERPC_SVR_E500, e5500),
#endif
/* PowerPC e500 microcontrollers */
/* MPC8533 */
--
1.6.0.2
next prev parent reply other threads:[~2013-01-18 18:13 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-01-18 18:13 [Qemu-devel] [PULL 0/9] ppc patch queue 2013-01-18 Alexander Graf
2013-01-18 18:13 ` [Qemu-devel] [PATCH 1/9] openpic: move gcr write into a function Alexander Graf
2013-01-18 18:13 ` [Qemu-devel] [PATCH 2/9] openpic: unify gcr mode mask updates Alexander Graf
2013-01-18 18:13 ` [Qemu-devel] [PATCH 3/9] openpic: set mixed mode as supported Alexander Graf
2013-01-18 18:13 ` [Qemu-devel] [PATCH 4/9] PPC: E500: Calculate loading blob offsets properly Alexander Graf
2013-01-18 18:13 ` Alexander Graf [this message]
2013-01-18 18:13 ` [Qemu-devel] [PATCH 6/9] PPC: e500: Change in-memory order of load blobs Alexander Graf
2013-01-18 18:13 ` [Qemu-devel] [PATCH 7/9] Update Linux kernel headers Alexander Graf
2013-01-18 18:13 ` [Qemu-devel] [PATCH 8/9] openpic: export e500 epr enable into a ppc.c function Alexander Graf
2013-01-18 18:13 ` [Qemu-devel] [PATCH 9/9] PPC: KVM: Add support for EPR with KVM Alexander Graf
2013-01-19 13:57 ` [Qemu-devel] [PULL 0/9] ppc patch queue 2013-01-18 Blue Swirl
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=1358532821-23250-6-git-send-email-agraf@suse.de \
--to=agraf@suse.de \
--cc=aurelien@aurel32.net \
--cc=blauwirbel@gmail.com \
--cc=qemu-devel@nongnu.org \
--cc=qemu-ppc@nongnu.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;
as well as URLs for NNTP newsgroup(s).