mirror of
https://github.com/yuzu-emu/unicorn.git
synced 2025-05-31 01:07:09 +00:00
s390: fix softmmu compilation
guest_base must be used only in linux-user mode. Backports commit 090d0bfd948343d522cd20bc634105b5cfe2483b from qemu
This commit is contained in:
parent
4071f20ce2
commit
ea2ee48d9c
|
@ -53,8 +53,6 @@
|
||||||
|
|
||||||
#ifdef CONFIG_USE_GUEST_BASE
|
#ifdef CONFIG_USE_GUEST_BASE
|
||||||
#define TCG_GUEST_BASE_REG TCG_REG_R13
|
#define TCG_GUEST_BASE_REG TCG_REG_R13
|
||||||
#else
|
|
||||||
#define TCG_GUEST_BASE_REG TCG_REG_R0
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifndef GUEST_BASE
|
#ifndef GUEST_BASE
|
||||||
|
@ -2349,10 +2347,12 @@ static void tcg_target_qemu_prologue(TCGContext *s)
|
||||||
TCG_STATIC_CALL_ARGS_SIZE + TCG_TARGET_CALL_STACK_OFFSET,
|
TCG_STATIC_CALL_ARGS_SIZE + TCG_TARGET_CALL_STACK_OFFSET,
|
||||||
CPU_TEMP_BUF_NLONGS * sizeof(long));
|
CPU_TEMP_BUF_NLONGS * sizeof(long));
|
||||||
|
|
||||||
|
#ifndef CONFIG_SOFTMMU
|
||||||
if (GUEST_BASE >= 0x80000) {
|
if (GUEST_BASE >= 0x80000) {
|
||||||
tcg_out_movi(s, TCG_TYPE_PTR, TCG_GUEST_BASE_REG, GUEST_BASE);
|
tcg_out_movi(s, TCG_TYPE_PTR, TCG_GUEST_BASE_REG, GUEST_BASE);
|
||||||
tcg_regset_set_reg(s->reserved_regs, TCG_GUEST_BASE_REG);
|
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]);
|
tcg_out_mov(s, TCG_TYPE_PTR, TCG_AREG0, tcg_target_call_iarg_regs[0]);
|
||||||
/* br %r3 (go to TB) */
|
/* br %r3 (go to TB) */
|
||||||
|
|
Loading…
Reference in a new issue