Make s390x build

This commit is contained in:
mio
2021-12-26 23:09:25 +01:00
parent faa689c0f0
commit e977f81813
4 changed files with 7 additions and 2 deletions

View File

@@ -27,6 +27,7 @@
#include "sysemu/sysemu.h"
#include "sysemu/tcg.h"
#include "fpu/softfloat-helpers.h"
#include "exec/exec-all.h"
#define CR0_RESET 0xE0UL
#define CR14_RESET 0xC2000000UL;

View File

@@ -1,4 +1,5 @@
DEF_HELPER_4(uc_tracecode, void, i32, i32, ptr, i64)
DEF_HELPER_6(uc_traceopcode, void, ptr, i64, i64, i32, ptr, i64)
DEF_HELPER_2(exception, noreturn, env, i32)
DEF_HELPER_2(data_exception, noreturn, env, i32)

View File

@@ -6844,7 +6844,7 @@ static void s390x_tr_translate_insn(DisasContextBase *dcbase, CPUState *cs)
DisasContext *dc = container_of(dcbase, DisasContext, base);
// Unicorn: end address tells us to stop emulation
if (dcbase->pc_next == dc->uc->addr_end) {
if (uc_addr_is_exit(dc->uc, dcbase->pc_next)) {
// imitate PGM exception to halt emulation
dcbase->is_jmp = DISAS_UNICORN_HALT;
} else {