summaryrefslogtreecommitdiff
path: root/src/arch/sparc
diff options
context:
space:
mode:
authorGabe Black <gblack@eecs.umich.edu>2008-01-01 18:20:08 -0500
committerGabe Black <gblack@eecs.umich.edu>2008-01-01 18:20:08 -0500
commit2cb7d4f068238c84968b1b26d5f498c58779df24 (patch)
treefd2f8d402f880509f2531a4214f56fd97776a933 /src/arch/sparc
parent45ea1549c9cec71b5119702056fad20a0db1ebdf (diff)
downloadgem5-2cb7d4f068238c84968b1b26d5f498c58779df24.tar.xz
SPARC: Fix a bug where the TLB would match against the wrong entries.
--HG-- extra : convert_revision : 631b3b6a1416121b54bd9717ca1cdccdd5b8a1eb
Diffstat (limited to 'src/arch/sparc')
-rw-r--r--src/arch/sparc/tlb.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/arch/sparc/tlb.cc b/src/arch/sparc/tlb.cc
index c0ad75c6e..740da37ab 100644
--- a/src/arch/sparc/tlb.cc
+++ b/src/arch/sparc/tlb.cc
@@ -223,7 +223,7 @@ TLB::lookup(Addr va, int partition_id, bool real, int context_id, bool
va, partition_id, context_id, real);
// Assemble full address structure
tr.va = va;
- tr.size = MachineBytes;
+ tr.size = 1;
tr.contextId = context_id;
tr.partitionId = partition_id;
tr.real = real;
@@ -282,7 +282,7 @@ TLB::demapPage(Addr va, int partition_id, bool real, int context_id)
// Assemble full address structure
tr.va = va;
- tr.size = MachineBytes;
+ tr.size = 1;
tr.contextId = context_id;
tr.partitionId = partition_id;
tr.real = real;