Skip to content

Commit

Permalink
Minor compilation fixes for ppcd
Browse files Browse the repository at this point in the history
  • Loading branch information
FrodeSolheim committed Sep 14, 2014
1 parent f7a4821 commit 09ebf8f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
8 changes: 4 additions & 4 deletions src/ppc/ppcd.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -388,7 +388,7 @@ static void bcx(int Disp, int L)
if(Disp)
{
bd = DIS_UIMM & ~3;
if(bd & 0x8000) bd |= 0xffffffffffff0000;
if(bd & 0x8000) bd |= 0xffffffffffff0000LL;
o->target = (AA ? 0 : DIS_PC) + bd;
}
else o->target = 0;
Expand Down Expand Up @@ -451,9 +451,9 @@ static void bx(void)
{
// Calculate displacement and target address
u64 bd = Instr & 0x03fffffc;
if(bd & 0x02000000) bd |= 0xfffffffffc000000;
if(bd & 0x02000000) bd |= 0xfffffffffc000000LL;
o->target = (AA ? 0 : DIS_PC) + bd;

o->iclass |= PPC_DISA_BRANCH;
sprintf(o->mnemonic, "b%s", b_opt[AALK]);
place_target(o->operands, 0);
Expand Down Expand Up @@ -1773,6 +1773,6 @@ char *PPCDisasmSimple(u64 pc, u32 instr)
dis_out.instr = instr;

PPCDisasm(&dis_out);
sprintf(output, "%08X %08X %-10s %s", pc, instr, dis_out.mnemonic, dis_out.operands);
sprintf(output, "%08llX %08X %-10s %s", pc, instr, dis_out.mnemonic, dis_out.operands);
return output;
}
4 changes: 2 additions & 2 deletions src/ppc/ppcd.h
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@

typedef signed char s8;
typedef signed short s16;
typedef signed long s32;
typedef signed int s32;
typedef unsigned char u8;
typedef unsigned short u16;
typedef unsigned long u32;
typedef unsigned int u32;
typedef float f32;
typedef double f64;

Expand Down

0 comments on commit 09ebf8f

Please sign in to comment.