mirror of https://github.com/proxmox/mirror_qemu
target-moxie: Implement CPUClass::set_pc()
This adds support for GDB's c addr (Continue) and s addr (Single Step). Prepares for dropping cpu_pc_from_tb(). Signed-off-by: Andreas Färber <afaerber@suse.de>master
parent
e700604df0
commit
a10b978c42
|
@ -22,6 +22,13 @@
|
||||||
#include "migration/vmstate.h"
|
#include "migration/vmstate.h"
|
||||||
#include "machine.h"
|
#include "machine.h"
|
||||||
|
|
||||||
|
static void moxie_cpu_set_pc(CPUState *cs, vaddr value)
|
||||||
|
{
|
||||||
|
MoxieCPU *cpu = MOXIE_CPU(cs);
|
||||||
|
|
||||||
|
cpu->env.pc = value;
|
||||||
|
}
|
||||||
|
|
||||||
static void moxie_cpu_reset(CPUState *s)
|
static void moxie_cpu_reset(CPUState *s)
|
||||||
{
|
{
|
||||||
MoxieCPU *cpu = MOXIE_CPU(s);
|
MoxieCPU *cpu = MOXIE_CPU(s);
|
||||||
|
@ -93,6 +100,7 @@ static void moxie_cpu_class_init(ObjectClass *oc, void *data)
|
||||||
|
|
||||||
cc->do_interrupt = moxie_cpu_do_interrupt;
|
cc->do_interrupt = moxie_cpu_do_interrupt;
|
||||||
cc->dump_state = moxie_cpu_dump_state;
|
cc->dump_state = moxie_cpu_dump_state;
|
||||||
|
cc->set_pc = moxie_cpu_set_pc;
|
||||||
cpu_class_set_vmsd(cc, &vmstate_moxie_cpu);
|
cpu_class_set_vmsd(cc, &vmstate_moxie_cpu);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue