#include "qemu/main-loop.h"
#include "qemu/mmap-alloc.h"
#include "qemu/log.h"
+#include "system/memory.h"
#include "system/system.h"
#include "system/hw_accel.h"
#include "system/runstate.h"
/* try to detect pgm check loops */
static int handle_oper_loop(S390CPU *cpu, struct kvm_run *run)
{
+ const MemTxAttrs attrs = MEMTXATTRS_UNSPECIFIED;
CPUState *cs = CPU(cpu);
PSW oldpsw, newpsw;
- newpsw.mask = ldq_be_phys(cs->as, cpu->env.psa +
- offsetof(LowCore, program_new_psw));
- newpsw.addr = ldq_be_phys(cs->as, cpu->env.psa +
- offsetof(LowCore, program_new_psw) + 8);
+ newpsw.mask = address_space_ldq_be(cs->as, cpu->env.psa +
+ offsetof(LowCore, program_new_psw),
+ attrs, NULL);
+ newpsw.addr = address_space_ldq_be(cs->as, cpu->env.psa +
+ offsetof(LowCore, program_new_psw) + 8,
+ attrs, NULL);
oldpsw.mask = run->psw_mask;
oldpsw.addr = run->psw_addr;
/*