qemu-patch-raspberry4/hw/mips
Leon Alrae 3adafef2f3 target-mips: fix corner case in TLBWR causing QEMU to hang
cpu_mips_get_random() function is used to generate a random index from
CP0.Wired to TLBSize-1 range. Current implementation avoids generating
the same as before value, hence the while loop. If the guest sets
CP0.Wired to TLBSize-1 (which actually does not sound to be very
practical) QEMU will get stuck in the loop infinitely as we always
generate the same index.

Signed-off-by: Leon Alrae <leon.alrae@imgtec.com>
Reviewed-by: Aurelien Jarno <aurelien@aurel32.net>
2015-09-18 09:20:48 +01:00
..
addr.c hw/mips: Add API to convert KVM guest KSEG0 <-> GPA 2014-06-18 16:58:10 +02:00
cputimer.c target-mips: fix corner case in TLBWR causing QEMU to hang 2015-09-18 09:20:48 +01:00
gt64xxx_pci.c gt64xxx: remove isa_mem_base usage 2015-02-13 14:09:27 +00:00
Makefile.objs mips jazz: compile only in 64 bit 2015-06-11 10:13:29 +01:00
mips_fulong2e.c i8257: remove cpu_request_exit irq 2015-09-09 15:34:53 +02:00
mips_int.c hw/mips: In KVM mode, inject IRQ2 (I/O) interrupts via ioctls 2014-06-18 16:59:12 +02:00
mips_jazz.c i8257: remove cpu_request_exit irq 2015-09-09 15:34:53 +02:00
mips_malta.c i8257: remove cpu_request_exit irq 2015-09-09 15:34:53 +02:00
mips_mipssim.c mips: memory: Replace memory_region_init_ram with memory_region_allocate_system_memory 2015-03-25 14:35:31 +01:00
mips_r4k.c maint: avoid useless "if (foo) free(foo)" pattern 2015-09-11 10:21:38 +03:00