summaryrefslogtreecommitdiff
path: root/src/base/fenv.c
diff options
context:
space:
mode:
authorGabe Black <gblack@eecs.umich.edu>2007-06-14 13:53:27 +0000
committerGabe Black <gblack@eecs.umich.edu>2007-06-14 13:53:27 +0000
commitcb7934f0527d87270315d2688d0a1e457cb84f56 (patch)
tree2fd00a2b29c3f74155a591fcade21c43f69b98ce /src/base/fenv.c
parent752199f8279823088783103616cc41fa47a4b7ea (diff)
downloadgem5-cb7934f0527d87270315d2688d0a1e457cb84f56.tar.xz
Fix an assert to allow rounding mode 0.
--HG-- extra : convert_revision : 119cc87ccf939d3a0048d87d18e125deca378bb7
Diffstat (limited to 'src/base/fenv.c')
-rw-r--r--src/base/fenv.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/base/fenv.c b/src/base/fenv.c
index 269913a60..2ec2f796f 100644
--- a/src/base/fenv.c
+++ b/src/base/fenv.c
@@ -39,7 +39,7 @@ static const int m5_round_ops[] = {FE_DOWNWARD, FE_TONEAREST, FE_TOWARDZERO, FE
void m5_fesetround(int rm)
{
- assert(rm > 0 && rm < 4);
+ assert(rm >= 0 && rm < 4);
fesetround(m5_round_ops[rm]);
}