diff options
Diffstat (limited to 'user/qemu/ppc32-musl-support.patch')
-rw-r--r-- | user/qemu/ppc32-musl-support.patch | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/user/qemu/ppc32-musl-support.patch b/user/qemu/ppc32-musl-support.patch new file mode 100644 index 000000000..4c6ab59eb --- /dev/null +++ b/user/qemu/ppc32-musl-support.patch @@ -0,0 +1,16 @@ +--- qemu-2.12.0/accel/tcg/user-exec.c.old 2018-07-30 03:20:04.910000000 +0000 ++++ qemu-2.12.0/accel/tcg/user-exec.c 2018-07-30 03:38:57.350000000 +0000 +@@ -304,8 +304,13 @@ + #define CR_sig(context) REG_sig(ccr, context) + + #else // Musl ++#if defined(_ARCH_PPC64) + #define REG_sig(reg_num, context) \ + ((context)->uc_mcontext.gp_regs[reg_num]) ++#else ++#define REG_sig(reg_num, context) \ ++ ((context)->uc_mcontext.gregs[reg_num]) ++#endif + /* Gpr Registers access */ + #define GPR_sig(reg_num, context) REG_sig(gpr[reg_num], context) + /* Program counter */ |