History | View | Annotate | Download (8.4 kB)
target-openrisc: Correct memory bounds checking for the tlb buffers
The mtspr and mfspr routines didn't check for the correct memory boundaries.This fixes a segmentation fault while booting Linux.
Signed-off-by: Sebastian Macke <sebastian@macke.de>Reviewed-by: Jia Liu <proljc@gmail.com>...
openrisc-timer: Reduce overhead, Separate clock update functions
The clock value is only evaluated when really necessary reducingthe overhead of the timer handling.
This also solves a problem in the way the Linux kernelhandles the timer and the expected accuracy....
cpu: Move halted and interrupt_request fields to CPUState
Both fields are used in VMState, thus need to be moved together.Explicitly zero them on reset since they were located beforebreakpoints.
Pass PowerPCCPU to kvmppc_handle_halt().
Signed-off-by: Andreas Färber <afaerber@suse.de>
target-openrisc: Clean up triple QOM casts
Instead of calling openrisc_env_get_cpu(), casting to CPU via theENV_GET_CPU() compatibility macro and casting back to OPENRISC_CPU(),just call openrisc_env_get_cpu() directly.
ENV_GET_CPU() is meant as workaround for target-independent code only....
target-or32: Add system instructions
Add OpenRISC system instructions.
Signed-off-by: Jia Liu <proljc@gmail.com>Signed-off-by: Blue Swirl <blauwirbel@gmail.com>