diff options
author | Gabe Black <gblack@eecs.umich.edu> | 2011-09-19 02:46:48 -0700 |
---|---|---|
committer | Gabe Black <gblack@eecs.umich.edu> | 2011-09-19 02:46:48 -0700 |
commit | 10c2e37f604280fb89d800839cc965204d096c59 (patch) | |
tree | 4f71f4ebc8d3c9c20d2f8058410974bf8e2e0608 /src/cpu/o3/dyn_inst.hh | |
parent | 83aa47adca17be33d53da6734ea422e1e0e2a07c (diff) | |
download | gem5-10c2e37f604280fb89d800839cc965204d096c59.tar.xz |
Syscall: Make the syscall function available in both SE and FS modes.
In FS mode the syscall function will panic, but the interface will be
consistent and code which calls syscall can be compiled in. This will allow,
for instance, instructions that use syscall to be built unconditionally but
then not returned by the decoder.
Diffstat (limited to 'src/cpu/o3/dyn_inst.hh')
-rw-r--r-- | src/cpu/o3/dyn_inst.hh | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/cpu/o3/dyn_inst.hh b/src/cpu/o3/dyn_inst.hh index 399240d69..e58eb99c5 100644 --- a/src/cpu/o3/dyn_inst.hh +++ b/src/cpu/o3/dyn_inst.hh @@ -205,11 +205,11 @@ class BaseO3DynInst : public BaseDynInst<Impl> /** Traps to handle specified fault. */ void trap(Fault fault); bool simPalCheck(int palFunc); -#else - /** Calls a syscall. */ - void syscall(int64_t callnum); #endif + /** Emulates a syscall. */ + void syscall(int64_t callnum); + public: // The register accessor methods provide the index of the |