s390: fix softmmu compilation
PATCH 1/1 s390: fix softmmu compilation
guest_base must be used only in linux-user mode.
--- tcg/s390/tcg-target.c | 2 ++ 1 file changed, 2 insertions(+)
tcg/s390/tcg-target.c +2 -0
@@ -2344,10 +2344,12 @@ static void tcg_target_qemu_prologue(TCGContext *s)TCG_STATIC_CALL_ARGS_SIZE +TCG_TARGET_CALL_STACK_OFFSET , CPU_TEMP_BUF_NLONGS * sizeof(long)); +#ifndef CONFIG_SOFTMMU if (guest_base >=0x80000 ) {tcg_out_movi (s,TCG_TYPE_PTR ,TCG_GUEST_BASE_REG , guest_base);tcg_regset_set_reg (s->reserved_regs,TCG_GUEST_BASE_REG ); } +#endif tcg_out_mov (s,TCG_TYPE_PTR ,TCG_AREG0 , tcg_target_call_iarg_regs[0 ]);/* br %r3 (go to TB) */
Signature · 1 line
2.4.3
Quoted 7 lines · On Fri, 28 Aug 2015 11:09:05 +0200 Laurent Vivier <[email protected]> wrote:
guest_basemust be used only in linux-user mode.Signed-off-by Laurent Vivier <[email protected]>--- tcg/s390/tcg-target.c | 2 ++ 1 file changed, 2 insertions(+)
Thanks, that fixed compilation on s390 for me.
Quoted 5 lines · Cornelia Huck
Quoted 2 lines · On Fri, 28 Aug 2015 11:09:05 +0200 Laurent Vivier <[email protected]> wrote:
guest_basemust be used only in linux-user mode.
Quoted 7 lines
Quoted 5 lines
Signed-off-by Laurent Vivier <[email protected]>--- tcg/s390/tcg-target.c | 2 ++ 1 file changed, 2 insertions(+)Thanks, that fixed compilation on s390 for me.
I'm planning to apply this directly to master as a buildfix.
thanks
-- PMM
Quoted 12 lines · Peter Maydell
Quoted 11 lines · Cornelia Huck
Quoted 7 lines · On Fri, 28 Aug 2015 11:09:05 +0200 Laurent Vivier <[email protected]> wrote:
guest_basemust be used only in linux-user mode.Signed-off-by Laurent Vivier <[email protected]>--- tcg/s390/tcg-target.c | 2 ++ 1 file changed, 2 insertions(+)
Quoted 3 lines
Quoted 1 line
Thanks, that fixed compilation on s390 for me.
I'm planning to apply this directly to master as a buildfix.
Incidentally, minor cleanup now possible: TCG_GUEST_BASE_REG is now only used inside ifndef CONFIG_SOFTMMU, so you can drop the #define of it to TCG_REG_R0 in the softmmu case.
-- PMM
Quoted 13 lines · Peter Maydell
Quoted 12 lines · Peter Maydell
Quoted 11 lines · Cornelia Huck
Quoted 7 lines · On Fri, 28 Aug 2015 11:09:05 +0200 Laurent Vivier <[email protected]> wrote:
guest_basemust be used only in linux-user mode.Signed-off-by Laurent Vivier <[email protected]>--- tcg/s390/tcg-target.c | 2 ++ 1 file changed, 2 insertions(+)
Quoted 7 lines
Quoted 3 lines
Quoted 1 line
Thanks, that fixed compilation on s390 for me.
I'm planning to apply this directly to master as a buildfix.
Incidentally, minor cleanup now possible:
TCG_GUEST_BASE_REGis now only used inside ifndefCONFIG_SOFTMMU, so you can drop the #define of it toTCG_REG_R0in the softmmu case.
You're right I send a v2...
Laurent