X86: Fix register ordering.
authorGabe Black <gblack@eecs.umich.edu>
Sun, 29 Jul 2007 08:28:36 +0000 (01:28 -0700)
committerGabe Black <gblack@eecs.umich.edu>
Sun, 29 Jul 2007 08:28:36 +0000 (01:28 -0700)
The correct order is unintuitively rax, rcx, rdx, rbx, etc, not rax, rbx, rcx, rdx.

--HG--
extra : convert_revision : 3abe6a723a6e30becfe34f8da707ea2ff5d4df77

src/cpu/nativetrace.cc

index 57304c79bac7f0430fc8a36d5629876e73947499..90a0e1a62f145db0b6b61d622c78a483cbab7285 100644 (file)
@@ -107,9 +107,9 @@ Trace::NativeTraceRecord::dump()
     if(!staticInst->isMicroop() || staticInst->isLastMicroop())
     {
         checkIntReg("rax", INTREG_RAX, sizeof(uint64_t));
-        checkIntReg("rbx", INTREG_RBX, sizeof(uint64_t));
         checkIntReg("rcx", INTREG_RCX, sizeof(uint64_t));
         checkIntReg("rdx", INTREG_RDX, sizeof(uint64_t));
+        checkIntReg("rbx", INTREG_RBX, sizeof(uint64_t));
         checkIntReg("rsp", INTREG_RSP, sizeof(uint64_t));
         checkIntReg("rbp", INTREG_RBP, sizeof(uint64_t));
         checkIntReg("rsi", INTREG_RSI, sizeof(uint64_t));