ARM: Add a comment to vfp.cc that explains the asm statements.
authorGabe Black <gblack@eecs.umich.edu>
Wed, 2 Jun 2010 17:58:18 +0000 (12:58 -0500)
committerGabe Black <gblack@eecs.umich.edu>
Wed, 2 Jun 2010 17:58:18 +0000 (12:58 -0500)
src/arch/arm/insts/vfp.cc

index 1637797159e361ec30db475e4e4f93ce3801898a..1968a59a9f3250af3b14c04d3ab45199a51ba3a1 100644 (file)
 
 #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
 {