Add some comments to the emulate_* functions.

llvm-svn: 124588
This commit is contained in:
Johnny Chen 2011-01-31 18:02:28 +00:00
parent 272e084bca
commit 072c35866a
1 changed files with 6 additions and 1 deletions

View File

@ -68,6 +68,9 @@ typedef struct
const char *name; const char *name;
} ARMOpcode; } ARMOpcode;
// Push Multiple Registers stores multiple registers to the stack, storing to
// consecutive memory locations ending just below the address in SP, and updates
// SP to point to the start of the stored data.
static bool static bool
emulate_push (EmulateInstructionARM *emulator, ARMEncoding encoding) emulate_push (EmulateInstructionARM *emulator, ARMEncoding encoding)
{ {
@ -660,7 +663,7 @@ emulate_sub_sp_imm (EmulateInstructionARM *emulator, ARMEncoding encoding)
return true; return true;
} }
// A store operation to the stacks that also updates the SP. // A store operation to the stack that also updates the SP.
static bool static bool
emulate_str_rt_sp (EmulateInstructionARM *emulator, ARMEncoding encoding) emulate_str_rt_sp (EmulateInstructionARM *emulator, ARMEncoding encoding)
{ {
@ -733,6 +736,8 @@ emulate_str_rt_sp (EmulateInstructionARM *emulator, ARMEncoding encoding)
return true; return true;
} }
// Vector Push stores multiple extension registers to the stack.
// It also updates SP to point to the start of the stored data.
static bool static bool
emulate_vpush (EmulateInstructionARM *emulator, ARMEncoding encoding) emulate_vpush (EmulateInstructionARM *emulator, ARMEncoding encoding)
{ {