alpha-softmmu updates
Changes v1-v2:
* Update submodule, which I'd forgotten we had.
r~
The following changes since commit 6453a3a69488196f26d12654c6b148446abdf3d6:
Merge remote-tracking branch 'quintela/migration.next' into staging (2013-07-15 14:49:16 -0500)
are available in the git repository at:
git://github.com/rth7680/qemu.git axp-next
for you to fetch changes up to b957a1b03cfd56134519ebc01ba8fe1b166c0c84:
pc-bios: Update palcode-clipper (2013-07-18 08:17:42 -0700)
----------------------------------------------------------------
Richard Henderson (2):
target-alpha: Move alarm to vm_clock
pc-bios: Update palcode-clipper
.gitmodules | 2 +- hw/alpha/typhoon.c | 2 +- pc-bios/README | 2 +- pc-bios/palcode-clipper | Bin 185703 -> 133550 bytes roms/qemu-palcode | 2 +- target-alpha/helper.h | 3 ++- target-alpha/sys_helper.c | 7 ++++++- target-alpha/translate.c | 12 ++++++++---- 8 files changed, 20 insertions(+), 10 deletions(-)
[Qemu-devel] [PULL v2 1/2] target-alpha: Move alarm to vm_clock
Basing the alarm off the rtc_clock was silly. It leads to horrible spinning in the guest after being suspended and resumed, as it tries to catch up with lost ticks.
This requires adding an accessor for reading the vm_clock too.
--- hw/alpha/typhoon.c | 2 +- target-alpha/helper.h | 3 ++- target-alpha/sys_helper.c | 7 ++++++- target-alpha/translate.c | 12 ++++++++---- 4 files changed, 17 insertions(+), 7 deletions(-)
hw/alpha/typhoon.c +1 -1
@@ -693,7 +693,7 @@ PCIBus *typhoon_init(ram_addr_t ram_size, ISABus **isa_bus,AlphaCPU *cpu = cpus[i]; s->cchip.cpu[i] = cpu;if (cpu !=NULL ) { - cpu->alarm_timer =qemu_new_timer_ns (rtc_clock, + cpu->alarm_timer =qemu_new_timer_ns (vm_clock, typhoon_alarm_timer, (void *)((uintptr_t )s + i)); }
target-alpha/helper.h +2 -1
@@ -114,7 +114,8 @@ DEF_HELPER_FLAGS_2(tbis, TCG_CALL_NO_RWG, void, env, i64)DEF_HELPER_1 (halt, void, i64); -DEF_HELPER_FLAGS_0(get_time, TCG_CALL_NO_RWG, i64) +DEF_HELPER_FLAGS_0(get_vmtime, TCG_CALL_NO_RWG, i64) +DEF_HELPER_FLAGS_0(get_walltime, TCG_CALL_NO_RWG, i64) DEF_HELPER_FLAGS_2(set_alarm, TCG_CALL_NO_RWG, void, env, i64)#endif
target-alpha/sys_helper.c +6 -1
@@ -70,7 +70,12 @@ void helper_halt(uint64_t restart) } } -uint64_t helper_get_time (void ) +uint64_t helper_get_vmtime (void ) +{ +return qemu_get_clock_ns (vm_clock); +} + +uint64_t helper_get_walltime (void ) {return qemu_get_clock_ns (rtc_clock); }
target-alpha/translate.c +8 -4
@@ -1634,15 +1634,19 @@ static ExitStatus gen_mfpr(int ra, int regno)return NO_EXIT ; } -if (regno ==250 ) { -/* WALL_TIME */ +/* Special help for VMTIME and WALLTIME. */ +if (regno ==250 || regno ==249 ) { +void (*helper)(TCGv ) = gen_helper_get_walltime; +if (regno ==249 ) { + helper = gen_helper_get_vmtime; + }if (use_icount) {gen_io_start (); -gen_helper_get_time (cpu_ir[ra]); +helper (cpu_ir[ra]);gen_io_end ();return EXIT_PC_STALE ; }else { -gen_helper_get_time (cpu_ir[ra]); +helper (cpu_ir[ra]);return NO_EXIT ; } }
Signature · 1 line
1.8.1.4
[Qemu-devel] [PULL v2 2/2] pc-bios: Update palcode-clipper
In reply to Richard HendersonUpdate image to c87a92639b28ac42bc8f6c67443543b405dc479b, incorporating changes for vm_time.
--- .gitmodules | 2 +- pc-bios/README | 2 +- pc-bios/palcode-clipper | Bin 185703 -> 133550 bytes roms/qemu-palcode | 2 +- 4 files changed, 3 insertions(+), 3 deletions(-)
.gitmodules +1 -1
@@ -15,7 +15,7 @@ url = git://git.qemu.org/openbios.git [submodule "roms/qemu-palcode"] path = roms/qemu-palcode - url = git://repo.or.cz/qemu-palcode.git + url = git://github.com/rth7680/qemu-palcode.git [submodule "roms/sgabios"] path = roms/sgabios url = git://git.qemu.org/sgabios.git
pc-bios/README +1 -1
@@ -40,4 +40,4 @@ git://repo.or.cz/s390-tools.git - The sources for the Alpha palcode image is available from: - git://repo.or.cz/qemu-palcode.git + git://github.com/rth7680/qemu-palcode.git
pc-bios/palcode-clipper binary +0 -0
roms/qemu-palcode +1 -1
@@ -1 +1 @@ -Subproject commit 7abb12f60eb3069019e9497e193733d77d8f0722 +Subproject commit c87a92639b28ac42bc8f6c67443543b405dc479b
Signature · 1 line
1.8.1.4
Ping.
r~
Quoted 35 lines · Richard Henderson
Changes v1-v2:
* Update submodule, which I'd forgotten we had.r~
The following changes since commit
6453a3a69488196f26d12654c6b148446abdf3d6:Merge remote-tracking branch 'quintela/migration.next' into staging (2013-07-15 14:49:16 -0500)
are available in the git repository at:
git://github.com/rth7680/qemu.gitaxp-nextfor you to fetch changes up to
b957a1b03cfd56134519ebc01ba8fe1b166c0c84:pc-bios: Update palcode-clipper (2013-07-18 08:17:42 -0700)
----------------------------------------------------------------
Richard Henderson (2):
target-alpha: Move alarm tovm_clock
pc-bios: Update palcode-clipper.gitmodules | 2 +- hw/alpha/typhoon.c | 2 +- pc-bios/README | 2 +- pc-bios/palcode-clipper | Bin 185703 -> 133550 bytes roms/qemu-palcode | 2 +- target-alpha/helper.h | 3 ++- target-alpha/sys_helper.c | 7 ++++++- target-alpha/translate.c | 12 ++++++++---- 8 files changed, 20 insertions(+), 10 deletions(-)