diff options
author | Gabe Black <gblack@eecs.umich.edu> | 2006-12-28 14:27:45 -0500 |
---|---|---|
committer | Gabe Black <gblack@eecs.umich.edu> | 2006-12-28 14:27:45 -0500 |
commit | b642ad00eb55678f4ce20fdf127a00a6c0bbdcb8 (patch) | |
tree | 37280a2bade801cc43d66702b537cfa0c51ba91b /src/cpu/ozone | |
parent | 9ca6efdb60866b1feada0295b02fdc7ff49eacf2 (diff) | |
download | gem5-b642ad00eb55678f4ce20fdf127a00a6c0bbdcb8.tar.xz |
Implement a stub nnpc for alpha that is read only as npc+4.
--HG--
extra : convert_revision : d08b740d32757fa5471c9bcde9084d59a1d8102d
Diffstat (limited to 'src/cpu/ozone')
-rw-r--r-- | src/cpu/ozone/cpu.hh | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/src/cpu/ozone/cpu.hh b/src/cpu/ozone/cpu.hh index 0da446c9c..baea7a546 100644 --- a/src/cpu/ozone/cpu.hh +++ b/src/cpu/ozone/cpu.hh @@ -219,11 +219,19 @@ class OzoneCPU : public BaseCPU uint64_t readNextNPC() { - return 0; +#if ISA_HAS_DELAY_SLOT + panic("Ozone needs to support nextNPC"); +#else + return thread->nextPC + sizeof(TheISA::MachInst); +#endif } void setNextNPC(uint64_t val) - { } + { +#if ISA_HAS_DELAY_SLOT + panic("Ozone needs to support nextNPC"); +#endif + } public: // ISA stuff: |