qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-devel] [PATCH v5 04/30] target-ppc: Make UCTRL a mirror of CTRL


From: Alexey Kardashevskiy
Subject: [Qemu-devel] [PATCH v5 04/30] target-ppc: Make UCTRL a mirror of CTRL
Date: Wed, 4 Jun 2014 22:50:39 +1000

This changes UCTRL SPR to read from its supermode copy.

This enables reading from UCTRL in user mode.

Signed-off-by: Alexey Kardashevskiy <address@hidden>
---
 target-ppc/translate_init.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/target-ppc/translate_init.c b/target-ppc/translate_init.c
index 04497e4..8b83b28 100644
--- a/target-ppc/translate_init.c
+++ b/target-ppc/translate_init.c
@@ -7308,8 +7308,8 @@ static void gen_spr_book3s_common(CPUPPCState *env)
                  SPR_NOACCESS, &spr_write_generic,
                  0x00000000);
     spr_register(env, SPR_UCTRL, "SPR_UCTRL",
-                 SPR_NOACCESS, SPR_NOACCESS,
-                 &spr_read_generic, SPR_NOACCESS,
+                 &spr_read_ureg, SPR_NOACCESS,
+                 &spr_read_ureg, SPR_NOACCESS,
                  0x00000000);
 }
 
-- 
2.0.0




reply via email to

[Prev in Thread] Current Thread [Next in Thread]