[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH qom v3 2/4] gdbstub: Use cpu_set_pc() helper
From: |
Peter Crosthwaite |
Subject: |
[Qemu-devel] [PATCH qom v3 2/4] gdbstub: Use cpu_set_pc() helper |
Date: |
Tue, 23 Jun 2015 20:19:21 -0700 |
Use the cpu_set_pc() helper which will take care of CPUClass retrieval
for us.
Signed-off-by: Peter Crosthwaite <address@hidden>
---
Changed since v2:
Add () to fn names in commit message
Drop error argument
---
gdbstub.c | 5 +----
1 file changed, 1 insertion(+), 4 deletions(-)
diff --git a/gdbstub.c b/gdbstub.c
index cea2a84..3ccf31e 100644
--- a/gdbstub.c
+++ b/gdbstub.c
@@ -754,12 +754,9 @@ static void gdb_breakpoint_remove_all(void)
static void gdb_set_cpu_pc(GDBState *s, target_ulong pc)
{
CPUState *cpu = s->c_cpu;
- CPUClass *cc = CPU_GET_CLASS(cpu);
cpu_synchronize_state(cpu);
- if (cc->set_pc) {
- cc->set_pc(cpu, pc);
- }
+ cpu_set_pc(cpu, pc);
}
static CPUState *find_cpu(uint32_t thread_id)
--
1.9.1
[Qemu-devel] [PATCH qom v3 2/4] gdbstub: Use cpu_set_pc() helper,
Peter Crosthwaite <=
[Qemu-devel] [PATCH qom v3 3/4] arm: boot: Use cpu_set_pc(), Peter Crosthwaite, 2015/06/23
[Qemu-devel] [PATCH qom v3 4/4] microblaze: boot: Use cpu_set_pc(), Peter Crosthwaite, 2015/06/23
Re: [Qemu-devel] [PATCH qom v3 0/4] qom-cpu: Wrap set_pc hook and use in bootloaders, Andreas Färber, 2015/06/24