From 711680a183d92dd68d6b588756418fc4dbfd9078 Mon Sep 17 00:00:00 2001 From: Josh warner Date: Tue, 11 Aug 2009 13:29:00 -0600 Subject: [PATCH] fixed powerpc compile errors --- src/powerpc.cpp | 24 ++++++++++++++++-------- 1 file changed, 16 insertions(+), 8 deletions(-) diff --git a/src/powerpc.cpp b/src/powerpc.cpp index 99e0c0be34..07a31636b9 100644 --- a/src/powerpc.cpp +++ b/src/powerpc.cpp @@ -1676,6 +1676,14 @@ class MyArchitecture: public Assembler::Architecture { return 32; } + virtual unsigned generalRegisterCount() { + return 32; + } + + virtual unsigned floatRegisterCount() { + return 0; + } + virtual int stack() { return StackRegister; } @@ -1827,23 +1835,23 @@ class MyArchitecture: public Assembler::Architecture { *stack = *static_cast(*stack); } - virtual BinaryOperation hasBinaryIntrinsic(Thread* t, object method) { + virtual BinaryOperation hasBinaryIntrinsic(Thread*, object) { return NoBinaryOperation; } - virtual TernaryOperation hasTernaryIntrinsic(Thread* t UNUSED, object method UNUSED) { + virtual TernaryOperation hasTernaryIntrinsic(Thread*, object) { return NoTernaryOperation; } - virtual bool supportsFloatCompare(unsigned size) { + virtual bool supportsFloatCompare(unsigned) { return false; } - virtual bool alwaysCondensed(BinaryOperation op) { + virtual bool alwaysCondensed(BinaryOperation) { return false; } - virtual bool alwaysCondensed(TernaryOperation op) { + virtual bool alwaysCondensed(TernaryOperation) { return false; } @@ -1889,7 +1897,7 @@ class MyArchitecture: public Assembler::Architecture { virtual void planDestination (BinaryOperation op, - unsigned, const uint8_t* aTypeMask, const uint64_t* aRegisterMask, + unsigned, const uint8_t*, const uint64_t*, unsigned, uint8_t* bTypeMask, uint64_t* bRegisterMask) { *bTypeMask = (1 << RegisterOperand) | (1 << MemoryOperand); @@ -1962,9 +1970,9 @@ class MyArchitecture: public Assembler::Architecture { } virtual void planDestination - (TernaryOperation op, + (TernaryOperation, + unsigned, const uint8_t*, const uint64_t*, unsigned, const uint8_t*, const uint64_t*, - unsigned, const uint8_t* bTypeMask, const uint64_t* bRegisterMask, unsigned, uint8_t* cTypeMask, uint64_t* cRegisterMask) { *cTypeMask = (1 << RegisterOperand);