提交 3c902d44 编写于 作者: B Bharat Bhushan 提交者: Alexander Graf

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: NBharat Bhushan <Bharat.Bhushan@freescale.com>
Signed-off-by: NAlexander Graf <agraf@suse.de>
上级 b7d1f77a
......@@ -72,6 +72,8 @@ static int cap_papr;
static int cap_htab_fd;
static int cap_fixup_hcalls;
static uint32_t debug_inst_opcode;
/* 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
* 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;
}
kvm_get_one_reg(cs, KVM_REG_PPC_DEBUG_INST, &debug_inst_opcode);
return ret;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册