diff options
author | Gabe Black <gblack@eecs.umich.edu> | 2010-10-15 23:57:06 -0700 |
---|---|---|
committer | Gabe Black <gblack@eecs.umich.edu> | 2010-10-15 23:57:06 -0700 |
commit | ab9f062166085c9750eeee2318c25efeb2ec5948 (patch) | |
tree | 21cb1f2f3d4ec4d64574516e1335e6697321c07f /src/arch/x86 | |
parent | b197a542b4e572d1e2df149642850fb9189c86c7 (diff) | |
download | gem5-ab9f062166085c9750eeee2318c25efeb2ec5948.tar.xz |
GetArgument: Rework getArgument so that X86_FS compiles again.
When no size is specified for an argument, push the decision about what size
to use into the ISA by passing a size of -1.
Diffstat (limited to 'src/arch/x86')
-rw-r--r-- | src/arch/x86/utility.cc | 4 | ||||
-rw-r--r-- | src/arch/x86/utility.hh | 3 |
2 files changed, 5 insertions, 2 deletions
diff --git a/src/arch/x86/utility.cc b/src/arch/x86/utility.cc index d74bb74b6..624e8132f 100644 --- a/src/arch/x86/utility.cc +++ b/src/arch/x86/utility.cc @@ -52,7 +52,9 @@ namespace X86ISA { -uint64_t getArgument(ThreadContext *tc, int &number, uint8_t size, bool fp) { +uint64_t +getArgument(ThreadContext *tc, int &number, uint16_t size, bool fp) +{ #if FULL_SYSTEM panic("getArgument() not implemented for x86!\n"); #else diff --git a/src/arch/x86/utility.hh b/src/arch/x86/utility.hh index fd9ac59fd..05ce53347 100644 --- a/src/arch/x86/utility.hh +++ b/src/arch/x86/utility.hh @@ -52,7 +52,8 @@ class ThreadContext; namespace X86ISA { - uint64_t getArgument(ThreadContext *tc, int &number, uint8_t size, bool fp); + uint64_t + getArgument(ThreadContext *tc, int &number, uint16_t size, bool fp); static inline bool inUserMode(ThreadContext *tc) |