summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGabe Black <gblack@eecs.umich.edu>2010-06-02 12:58:18 -0500
committerGabe Black <gblack@eecs.umich.edu>2010-06-02 12:58:18 -0500
commite50e6a260f5316871ad53ae44d1b10ceb2ca267f (patch)
tree8e74075137eb59434921c88b40fe3e192b7312aa
parent10031a0327f05961b537b4a63ca1a5571cf524e7 (diff)
downloadgem5-e50e6a260f5316871ad53ae44d1b10ceb2ca267f.tar.xz
ARM: Add a comment to vfp.cc that explains the asm statements.
-rw-r--r--src/arch/arm/insts/vfp.cc6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/arch/arm/insts/vfp.cc b/src/arch/arm/insts/vfp.cc
index 163779715..1968a59a9 100644
--- a/src/arch/arm/insts/vfp.cc
+++ b/src/arch/arm/insts/vfp.cc
@@ -39,6 +39,12 @@
#include "arch/arm/insts/vfp.hh"
+/*
+ * The asm statements below are to keep gcc from reordering code. Otherwise
+ * the rounding mode might be set after the operation it was intended for, the
+ * exception bits read before it, etc.
+ */
+
std::string
FpRegRegOp::generateDisassembly(Addr pc, const SymbolTable *symtab) const
{