CheckerCPU: Add function stubs to non-ARM ISA source to compile with CheckerCPU
Review Request #1032 - Created Feb. 7, 2012 and submitted
| Information | |
|---|---|
| Geoffrey Blake | |
| gem5 | |
| default | |
| Reviewers | |
| Default | |
CheckerCPU: Add function stubs to non-ARM ISA source to compile with CheckerCPU Making the CheckerCPU a runtime time option requires the code to be compatible with ISAs other than ARM. This patch adds the appropriate function stubs to allow compilation.
Compiles for all ISAs.
Issue Summary
4
4
0
0
| Description | From | Last Updated | Status |
|---|---|---|---|
| If these don't do anything and the caller won't expect/handle that, they should panic and say they're not implemented. | Gabe Black | Feb. 8, 2012, 6:03 p.m. | Open |
| What's this from? I won't say it's not somewhere else or that it shouldn't be here, but I don't remember ... | Gabe Black | Feb. 8, 2012, 6:03 p.m. | Open |
| You're checking for x86 here too. It's normally equivalent and generally harmless to compare ExtMachInsts instead of MachInsts. The difference ... | Gabe Black | Feb. 8, 2012, 6:03 p.m. | Open |
| This looks pretty strange. Was this dead code? Did you bring it back to life here on purpose? Or in ... | Gabe Black | Feb. 8, 2012, 6:03 p.m. | Open |
Posted (Feb. 8, 2012, 6:03 p.m.)
-
src/arch/alpha/tlb.cc (Diff revision 1) -
If these don't do anything and the caller won't expect/handle that, they should panic and say they're not implemented.
-
src/cpu/checker/cpu_impl.hh (Diff revision 1) -
What's this from? I won't say it's not somewhere else or that it shouldn't be here, but I don't remember it. Also, the preprocessor is supposed to require #s to be all the way to the left.
-
src/cpu/checker/cpu_impl.hh (Diff revision 1) -
You're checking for x86 here too. It's normally equivalent and generally harmless to compare ExtMachInsts instead of MachInsts. The difference is that the ExtMachInsts have been contextualized and the MachInsts are just the raw bytes from memory. In the x86 case exactly what should be the MachInst is ambiguous, but not the ExtMachInst.
-
src/cpu/o3/iew_impl.hh (Diff revision 1) -
This looks pretty strange. Was this dead code? Did you bring it back to life here on purpose? Or in other words, is reintroducing it the right thing to do, or is it obsolete code?
Posted (Feb. 10, 2012, 7:29 a.m.)
Made requested changes to throw a panic in the non-implemented functions.
Posted (Feb. 27, 2012, 7:55 a.m.)
Rebasing for recent changes.
Posted (Feb. 28, 2012, 11:24 a.m.)
-
src/cpu/o3/iew_impl.hh (Diff revision 1) -
I'm a little confused... how does TARGET_ALPHA going away here correlate with compiling the checker CPU?
Posted (Feb. 29, 2012, 1:02 a.m.)
Split out the removal of the dead code in the O3 and Ozone cpu models as a separate patch.
Ship It!
