summaryrefslogtreecommitdiff
path: root/target-ppc/mem_helper.c
diff options
context:
space:
mode:
authorAlexander Graf <agraf@suse.de>2012-06-20 21:20:29 +0200
committerAlexander Graf <agraf@suse.de>2012-06-24 01:04:51 +0200
commite42a61f185f859246c14445b6e98e195eb3b977b (patch)
tree1e3ee47605c54b3986af5816dead928211b6f209 /target-ppc/mem_helper.c
parent84755ed51e6266b115322834933ce404a2fbf3f9 (diff)
PPC: Add support for MSR_CM
The BookE variant of MSR_SF is MSR_CM. Implement everything it takes in TCG to support running 64bit code with MSR_CM set. Signed-off-by: Alexander Graf <agraf@suse.de>
Diffstat (limited to 'target-ppc/mem_helper.c')
-rw-r--r--target-ppc/mem_helper.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/target-ppc/mem_helper.c b/target-ppc/mem_helper.c
index ebcd7b24a8..5b5f1bdd23 100644
--- a/target-ppc/mem_helper.c
+++ b/target-ppc/mem_helper.c
@@ -35,7 +35,7 @@ static inline target_ulong addr_add(CPUPPCState *env, target_ulong addr,
target_long arg)
{
#if defined(TARGET_PPC64)
- if (!msr_sf) {
+ if (!msr_is_64bit(env, env->msr)) {
return (uint32_t)(addr + arg);
} else
#endif