mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-01 23:03:54 -06:00
target/openrisc: Reduce tlb to a single dimension
While we had defines for *_WAYS, we didn't define more than 1. Reduce the complexity by eliminating this unused dimension. Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org> Signed-off-by: Richard Henderson <richard.henderson@linaro.org> Signed-off-by: Stafford Horne <shorne@gmail.com>
This commit is contained in:
parent
fd992ee7e3
commit
2acaa2331b
4 changed files with 30 additions and 32 deletions
|
@ -42,11 +42,9 @@ static const VMStateDescription vmstate_cpu_tlb = {
|
|||
.minimum_version_id = 1,
|
||||
.minimum_version_id_old = 1,
|
||||
.fields = (VMStateField[]) {
|
||||
VMSTATE_STRUCT_2DARRAY(itlb, CPUOpenRISCTLBContext,
|
||||
ITLB_WAYS, ITLB_SIZE, 0,
|
||||
VMSTATE_STRUCT_ARRAY(itlb, CPUOpenRISCTLBContext, ITLB_SIZE, 0,
|
||||
vmstate_tlb_entry, OpenRISCTLBEntry),
|
||||
VMSTATE_STRUCT_2DARRAY(dtlb, CPUOpenRISCTLBContext,
|
||||
DTLB_WAYS, DTLB_SIZE, 0,
|
||||
VMSTATE_STRUCT_ARRAY(dtlb, CPUOpenRISCTLBContext, DTLB_SIZE, 0,
|
||||
vmstate_tlb_entry, OpenRISCTLBEntry),
|
||||
VMSTATE_END_OF_LIST()
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue