Skip to content

Commit

Permalink
[Jit] Fixes BNE
Browse files Browse the repository at this point in the history
  • Loading branch information
Ced2911 committed Dec 6, 2013
1 parent 6a8948c commit 31bafa3
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
9 changes: 8 additions & 1 deletion Common/ppcEmitter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -223,11 +223,18 @@ namespace PpcGen {
void PPCXEmitter::BEQ (const void *fnptr) {
CHECK_SMALL_JUMP

s32 func = (s32)fnptr - s32(code);
s32 func = (s32)fnptr - s32(code);
u32 instr = (0x41820000 | ( func & 0xfffc));
Write32(instr);
}

void PPCXEmitter::BNE (const void *fnptr) {
CHECK_SMALL_JUMP

s32 func = (s32)fnptr - s32(code);
u32 instr = (0x40820000 | ( func & 0xfffc));
Write32(instr);
}

void PPCXEmitter::BGT(const void *fnptr) {
CHECK_SMALL_JUMP
Expand Down
1 change: 1 addition & 0 deletions Common/ppcEmitter.h
Original file line number Diff line number Diff line change
Expand Up @@ -203,6 +203,7 @@ namespace PpcGen
void BA (const void *fnptr);
void BLA(const void *fnptr);
void BEQ(const void *fnptr);
void BNE(const void *fnptr);
void BLE(const void *fnptr);
void BLT(const void *fnptr);
void BGT(const void *fnptr);
Expand Down

0 comments on commit 31bafa3

Please sign in to comment.