Remove C++ dependency and fix SystemZ initialization

This commit is contained in:
pancake 2014-02-04 08:11:07 +01:00
parent b5236ff33d
commit d889290a02
1 changed files with 2 additions and 1 deletions

View File

@ -67,10 +67,11 @@ const unsigned SystemZMC_FP128Regs[16] = {
unsigned SystemZMC_getFirstReg(unsigned Reg)
{
static unsigned Map[SystemZ_NUM_TARGET_REGS];
static bool Initialized = false;
static int Initialized = 0;
unsigned I;
if (!Initialized) {
Initialized = 1;
for (I = 0; I < 16; ++I) {
Map[SystemZMC_GR32Regs[I]] = I;
Map[SystemZMC_GRH32Regs[I]] = I;