From e50e6a260f5316871ad53ae44d1b10ceb2ca267f Mon Sep 17 00:00:00 2001 From: Gabe Black Date: Wed, 2 Jun 2010 12:58:18 -0500 Subject: ARM: Add a comment to vfp.cc that explains the asm statements. --- src/arch/arm/insts/vfp.cc | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/arch/arm/insts/vfp.cc') 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 { -- cgit v1.2.3