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/inorder/inorder_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/inorder/inorder_dyn_inst.hh')
-rw-r--r-- | src/cpu/inorder/inorder_dyn_inst.hh | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/cpu/inorder/inorder_dyn_inst.hh b/src/cpu/inorder/inorder_dyn_inst.hh index 3427af86b..f49476ec5 100644 --- a/src/cpu/inorder/inorder_dyn_inst.hh +++ b/src/cpu/inorder/inorder_dyn_inst.hh @@ -525,10 +525,10 @@ class InOrderDynInst : public FastAlloc, public RefCounted bool simPalCheck(int palFunc); #else short syscallNum; +#endif - /** Calls a syscall. */ + /** Emulates a syscall. */ void syscall(int64_t callnum); -#endif //////////////////////////////////////////////////////////// // |