mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-10 02:54:58 -06:00
ppc: debug stub: Get trap instruction opcode from KVM
Get trap instruction opcode from KVM and this opcode will be used for setting software breakpoint in following patch Signed-off-by: Bharat Bhushan <Bharat.Bhushan@freescale.com> Signed-off-by: Alexander Graf <agraf@suse.de>
This commit is contained in:
parent
b7d1f77ada
commit
3c902d4469
1 changed files with 4 additions and 0 deletions
|
@ -72,6 +72,8 @@ static int cap_papr;
|
||||||
static int cap_htab_fd;
|
static int cap_htab_fd;
|
||||||
static int cap_fixup_hcalls;
|
static int cap_fixup_hcalls;
|
||||||
|
|
||||||
|
static uint32_t debug_inst_opcode;
|
||||||
|
|
||||||
/* XXX We have a race condition where we actually have a level triggered
|
/* XXX We have a race condition where we actually have a level triggered
|
||||||
* interrupt, but the infrastructure can't expose that yet, so the guest
|
* interrupt, but the infrastructure can't expose that yet, so the guest
|
||||||
* takes but ignores it, goes to sleep and never gets notified that there's
|
* takes but ignores it, goes to sleep and never gets notified that there's
|
||||||
|
@ -436,6 +438,8 @@ int kvm_arch_init_vcpu(CPUState *cs)
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
kvm_get_one_reg(cs, KVM_REG_PPC_DEBUG_INST, &debug_inst_opcode);
|
||||||
|
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue