qemu-e2k/target
Laurent Vivier b8e13ba94e linux-user: SPARC "rd %tick" can be used by user application
we have the same problem decribed in 7d6b1daedd
("linux-user, ppc: mftbl can be used by user application")
for ppc in the case of sparc.

When we use an application trying to resolve a name, it hangs in

    0x00000000ff5dd40c:  rd  %tick, %o5
    0x00000000ff5dd410:  srlx  %o5, 0x20, %o4
    0x00000000ff5dd414:  btst  %o5, %g4
    0x00000000ff5dd418:  be  %icc, 0xff5dd40c

because %tick is staying at 0.

As QEMU_CLOCK_VIRTUAL is not available in linux-user mode,
simply use cpu_get_host_ticks() instead.

Signed-off-by: Laurent Vivier <laurent@vivier.eu>
Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Message-Id: <20180528194812.31216-1-laurent@vivier.eu>
2018-06-04 01:30:43 +02:00
..
alpha target/alpha: Honor CPU_DUMP_FPU 2018-05-18 14:52:38 -07:00
arm Make address_space_translate{, _cached}() take a MemTxAttrs argument 2018-05-31 14:50:52 +01:00
cris * Don't silently truncate extremely long words in the command line 2018-05-14 09:55:09 +01:00
hppa fpu/softfloat: Specialize on snan_bit_is_one 2018-05-17 15:27:15 -07:00
i386 x86/cpu: use standard-headers/asm-x86.kvm_para.h 2018-05-23 03:14:41 +03:00
lm32 lm32: take BQL before writing IP/IM register 2018-05-21 13:37:12 +02:00
m68k tcg: fix s/compliment/complement/ typos 2018-05-20 08:25:23 +03:00
microblaze target-microblaze: Consolidate MMU enabled checks 2018-05-29 09:35:15 +02:00
mips trivial patches for 2018-05-20 2018-05-21 10:50:32 +01:00
moxie icount: fix cpu_restore_state_from_tb for non-tb-exit cases 2018-04-11 09:05:22 +10:00
nios2 cpu: get rid of unused cpu_init() defines 2018-03-19 14:10:36 -03:00
openrisc target/openrisc: Merge disas_openrisc_insn 2018-05-14 14:58:08 -07:00
ppc Make address_space_map() take a MemTxAttrs argument 2018-05-31 16:32:35 +01:00
riscv Make address_space_translate{, _cached}() take a MemTxAttrs argument 2018-05-31 14:50:52 +01:00
s390x Make address_space_access_valid() take a MemTxAttrs argument 2018-05-31 16:32:35 +01:00
sh4 fpu/softfloat: Specialize on snan_bit_is_one 2018-05-17 15:27:15 -07:00
sparc linux-user: SPARC "rd %tick" can be used by user application 2018-06-04 01:30:43 +02:00
tilegx target/tilegx: avoid integer overflow in next_page PC check 2018-05-09 10:12:21 -07:00
tricore icount: fix cpu_restore_state_from_tb for non-tb-exit cases 2018-04-11 09:05:22 +10:00
unicore32 target/unicore32: Honor CPU_DUMP_FPU 2018-05-18 14:52:38 -07:00
xtensa Make tb_invalidate_phys_addr() take a MemTxAttrs argument 2018-05-31 14:50:52 +01:00