Change name and signature of helper functions to be consistent w/ S
This commit is contained in:
parent
64a9d72806
commit
297ec15436
@ -17,8 +17,8 @@
|
|||||||
#define DPI_WIDEMOV_SHIFT 16
|
#define DPI_WIDEMOV_SHIFT 16
|
||||||
|
|
||||||
// Prototypes
|
// Prototypes
|
||||||
void execute_SDT(Machine *state, a64inst_instruction *inst);
|
static void executeSDT(Machine *state, a64inst_instruction *inst);
|
||||||
void execute_Branch(Machine *state, a64inst_instruction *inst);
|
static void executeBranch(Machine *state, a64inst_instruction *inst);
|
||||||
static void executeDPImmediate(Machine *state, a64inst_instruction *inst);
|
static void executeDPImmediate(Machine *state, a64inst_instruction *inst);
|
||||||
static void executeDPRegister(Machine *state, a64inst_instruction *inst);
|
static void executeDPRegister(Machine *state, a64inst_instruction *inst);
|
||||||
|
|
||||||
@ -37,7 +37,7 @@ void execute(Machine *state, a64inst_instruction *inst) {
|
|||||||
|
|
||||||
// Execute a branch instruction
|
// Execute a branch instruction
|
||||||
case a64inst_BRANCH:
|
case a64inst_BRANCH:
|
||||||
execute_Branch(state, inst);
|
executeBranch(state, inst);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
// Execute a data processing register instruction
|
// Execute a data processing register instruction
|
||||||
@ -46,7 +46,7 @@ void execute(Machine *state, a64inst_instruction *inst) {
|
|||||||
break;
|
break;
|
||||||
|
|
||||||
case a64inst_SINGLETRANSFER:
|
case a64inst_SINGLETRANSFER:
|
||||||
execute_SDT(state, inst);
|
executeSDT(state, inst);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
// Unknown instruction
|
// Unknown instruction
|
||||||
@ -289,7 +289,7 @@ static void executeDPRegister(Machine *state, a64inst_instruction *inst) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void execute_SDT(Machine *state, a64inst_instruction *inst) {
|
static void executeSDT(Machine *state, a64inst_instruction *inst) {
|
||||||
word address;
|
word address;
|
||||||
bool isLoad;
|
bool isLoad;
|
||||||
if (inst->data.SingleTransferData.SingleTransferOpType == a64inst_SINGLE_TRANSFER_LOAD_LITERAL) {
|
if (inst->data.SingleTransferData.SingleTransferOpType == a64inst_SINGLE_TRANSFER_LOAD_LITERAL) {
|
||||||
@ -359,7 +359,7 @@ static bool isConditionMet(Machine* state, a64inst_ConditionType cond) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void execute_Branch(Machine *state, a64inst_instruction *inst) {
|
static void executeBranch(Machine *state, a64inst_instruction *inst) {
|
||||||
switch (inst->data.BranchData.BranchType) {
|
switch (inst->data.BranchData.BranchType) {
|
||||||
case a64inst_UNCONDITIONAL:
|
case a64inst_UNCONDITIONAL:
|
||||||
state->pc += signExtend(inst->data.BranchData.processOpData.unconditionalData.unconditionalOffset * 4, 26);
|
state->pc += signExtend(inst->data.BranchData.processOpData.unconditionalData.unconditionalOffset * 4, 26);
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user