From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:38742) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VHSal-0001dz-JW for qemu-devel@nongnu.org; Thu, 05 Sep 2013 01:59:03 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VHSaU-0002oR-Rp for qemu-devel@nongnu.org; Thu, 05 Sep 2013 01:58:55 -0400 Received: from e23smtp06.au.ibm.com ([202.81.31.148]:60257) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VHSaU-0002o2-8J for qemu-devel@nongnu.org; Thu, 05 Sep 2013 01:58:38 -0400 Received: from /spool/local by e23smtp06.au.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Thu, 5 Sep 2013 15:49:50 +1000 From: Alexey Kardashevskiy Date: Thu, 5 Sep 2013 15:58:20 +1000 Message-Id: <1378360700-4300-1-git-send-email-aik@ozlabs.ru> Subject: [Qemu-devel] [PATCH] spapr-rtas: reset top 4 bits in parameters address List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: Alexey Kardashevskiy , qemu-ppc@nongnu.org, 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 --- 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