summaryrefslogtreecommitdiffstats
path: root/target/openrisc/cpu.h
diff options
context:
space:
mode:
authorRichard Henderson2018-05-23 04:36:27 +0200
committerStafford Horne2018-07-02 17:05:28 +0200
commit2acaa2331b96ee92f0df213784f9b6454c3d5edc (patch)
tree9d7ab5c3ccdb64dd7e462810e81e63571ea2f4fa /target/openrisc/cpu.h
parenttarget/openrisc: Merge mmu_helper.c into mmu.c (diff)
downloadqemu-2acaa2331b96ee92f0df213784f9b6454c3d5edc.tar.gz
qemu-2acaa2331b96ee92f0df213784f9b6454c3d5edc.tar.xz
qemu-2acaa2331b96ee92f0df213784f9b6454c3d5edc.zip
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>
Diffstat (limited to 'target/openrisc/cpu.h')
-rw-r--r--target/openrisc/cpu.h6
1 files changed, 2 insertions, 4 deletions
diff --git a/target/openrisc/cpu.h b/target/openrisc/cpu.h
index a27adad085..eaf6cdd40e 100644
--- a/target/openrisc/cpu.h
+++ b/target/openrisc/cpu.h
@@ -222,10 +222,8 @@ enum {
/* TLB size */
enum {
- DTLB_WAYS = 1,
DTLB_SIZE = 64,
DTLB_MASK = (DTLB_SIZE-1),
- ITLB_WAYS = 1,
ITLB_SIZE = 64,
ITLB_MASK = (ITLB_SIZE-1),
};
@@ -256,8 +254,8 @@ typedef struct OpenRISCTLBEntry {
#ifndef CONFIG_USER_ONLY
typedef struct CPUOpenRISCTLBContext {
- OpenRISCTLBEntry itlb[ITLB_WAYS][ITLB_SIZE];
- OpenRISCTLBEntry dtlb[DTLB_WAYS][DTLB_SIZE];
+ OpenRISCTLBEntry itlb[ITLB_SIZE];
+ OpenRISCTLBEntry dtlb[DTLB_SIZE];
int (*cpu_openrisc_map_address_code)(struct OpenRISCCPU *cpu,
hwaddr *physical,