qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] [PATCH] spapr-rtas: reset top 4 bits in parameters address
@ 2013-09-05  5:58 Alexey Kardashevskiy
  2013-09-05  7:08 ` Alexander Graf
  0 siblings, 1 reply; 14+ messages in thread
From: Alexey Kardashevskiy @ 2013-09-05  5:58 UTC (permalink / raw)
  To: qemu-devel; +Cc: Alexey Kardashevskiy, qemu-ppc, Paul Mackerras, Alexander Graf

On the real hardware, RTAS is called in real mode and therefore
ignores top 4 bits of the address passed in the call.

This fixes QEMU to do the same thing.

Signed-off-by: Alexey Kardashevskiy <aik@ozlabs.ru>
---
 hw/ppc/spapr_rtas.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/hw/ppc/spapr_rtas.c b/hw/ppc/spapr_rtas.c
index eb542f2..ab03d67 100644
--- a/hw/ppc/spapr_rtas.c
+++ b/hw/ppc/spapr_rtas.c
@@ -240,7 +240,8 @@ target_ulong spapr_rtas_call(PowerPCCPU *cpu, sPAPREnvironment *spapr,
         struct rtas_call *call = rtas_table + (token - TOKEN_BASE);
 
         if (call->fn) {
-            call->fn(cpu, spapr, token, nargs, args, nret, rets);
+            call->fn(cpu, spapr, token, nargs, args & 0x0FFFFFFFFFFFFFFFUL,
+                     nret, rets);
             return H_SUCCESS;
         }
     }
-- 
1.8.4.rc4

^ permalink raw reply related	[flat|nested] 14+ messages in thread

end of thread, other threads:[~2013-09-06  6:43 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-09-05  5:58 [Qemu-devel] [PATCH] spapr-rtas: reset top 4 bits in parameters address Alexey Kardashevskiy
2013-09-05  7:08 ` Alexander Graf
2013-09-05  7:40   ` Alexey Kardashevskiy
2013-09-05  9:27     ` Alexander Graf
2013-09-05 10:17       ` Alexey Kardashevskiy
2013-09-05 10:21         ` Alexander Graf
2013-09-05 12:04           ` Alexey Kardashevskiy
2013-09-05 12:16             ` Alexander Graf
2013-09-05 12:49               ` Alexey Kardashevskiy
2013-09-05 13:08                 ` Alexander Graf
2013-09-05 14:24                   ` Alexey Kardashevskiy
2013-09-06  5:04                     ` Alexey Kardashevskiy
2013-09-06  6:22                       ` Alexander Graf
2013-09-06  6:43                         ` Alexey Kardashevskiy

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).