another compilation fix for new disasm stand-alone module

This commit is contained in:
Stanislav Shwartsman 2017-11-29 19:24:00 +00:00
parent ad60191059
commit 01067cb4b9
2 changed files with 6 additions and 0 deletions

View File

@ -22,7 +22,9 @@
/////////////////////////////////////////////////////////////////////////
#include "bochs.h"
#ifndef BX_STANDALONE_DECODER
#include "../cpu.h"
#endif
#include "instr.h"
#include "decoder.h"

View File

@ -74,7 +74,11 @@ struct BxOpcodeDecodeDescriptor32 {
// table of all Bochs opcodes
bxIAOpcodeTable BxOpcodesTable[] = {
#ifndef BX_STANDALONE_DECODER
#define bx_define_opcode(a, b, c, d, s1, s2, s3, s4, e) { b, c, { s1, s2, s3, s4 }, e },
#else
#define bx_define_opcode(a, b, c, d, s1, s2, s3, s4, e) { { s1, s2, s3, s4 }, e },
#endif
#include "ia_opcodes.def"
};
#undef bx_define_opcode