TLB: Fix for gcc 4.4.3
Review Request #1243 - Created May 30, 2012 and submitted
| Information | |
|---|---|
| Jayneel Gandhi | |
| gem5 | |
| default | |
| Reviewers | |
| Default | |
Changeset 9041:8605ef263973 --------------------------- TLB: Fix for gcc 4.4.3 Due to recent changes to TLB, gem5 stopped compiling on gcc version 4.4.3. This patch provides the fix for that problem. The patch is tested on gcc 4.4.3. The change is not required for more recent versions of gcc (like on 4.6.3).
Compiles with gcc 4.4.3
Review request changed
Updated (May 30, 2012, 2:30 p.m.)
Diff: |
Revision 2 (+1 -1) |
|---|
Review request changed
Updated (May 30, 2012, 2:46 p.m.)
Diff: |
Revision 3 (+1 -1) |
|---|
Review request changed
Updated (May 30, 2012, 2:55 p.m.)
Diff: |
Revision 4 (+1 -1) |
|---|
Review request changed
Updated (May 30, 2012, 2:57 p.m.)
Summary: |
|
|||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Description: |
|
|||||||||||||||||||||
Diff: |
Revision 5 (+1 -1) |
Ship It!
Posted (June 3, 2012, 7:58 a.m.)
-
src/arch/x86/tlb.cc (Diff revision 5) -
I see that altAddr and defAddr are defined by Gabe's bitfield package, which I assume makes them unsigned. Would it make more sense to change logSize to unsigned than to cast those fields to signed?
Review request changed
Updated (June 4, 2012, 7:36 a.m.)
Description: |
|
|||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Diff: |
Revision 6 (+1 -1) |
Posted (June 4, 2012, 12:21 p.m.)
This line looks >80 chars; can you wrap it appropriately? Also, I'm fine with using "unsigned" as an abbreviation for "unsigned int" (though that by itself isn't enough to get you below 80 chars). So something like this:
unsigned logSize = sizeOverride ? (unsigned)m5Reg.altAddr
: (unsigned)m5Reg.defAddr;
Review request changed
Updated (June 4, 2012, 1:42 p.m.)
Description: |
|
|||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Diff: |
Revision 7 (+2 -1) |
Ship It!
