aboutsummaryrefslogtreecommitdiff
path: root/target/openrisc/cpu.h
diff options
context:
space:
mode:
authorRichard Henderson <richard.henderson@linaro.org>2018-05-22 19:36:27 -0700
committerStafford Horne <shorne@gmail.com>2018-07-03 00:05:28 +0900
commit2acaa2331b96ee92f0df213784f9b6454c3d5edc (patch)
tree9d7ab5c3ccdb64dd7e462810e81e63571ea2f4fa /target/openrisc/cpu.h
parentfd992ee7e3fb12aea888744313a2869c8848ef9d (diff)
downloadqemu-2acaa2331b96ee92f0df213784f9b6454c3d5edc.zip
qemu-2acaa2331b96ee92f0df213784f9b6454c3d5edc.tar.gz
qemu-2acaa2331b96ee92f0df213784f9b6454c3d5edc.tar.bz2
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 a27adad..eaf6cdd 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,