fix windows compiling
This commit is contained in:
parent
7c62880b00
commit
79e97e339e
|
@ -506,6 +506,7 @@ void GameInfo::closeROM()
|
||||||
|
|
||||||
u32 GameInfo::readROM(u32 pos)
|
u32 GameInfo::readROM(u32 pos)
|
||||||
{
|
{
|
||||||
|
//TODO - this should not be done here! it's a property of the slot-1 device, not the rom!
|
||||||
if ((pos < 0x8000) && (pos >= 0x4000))
|
if ((pos < 0x8000) && (pos >= 0x4000))
|
||||||
return *(u32*)(secureArea + (pos - 0x4000));
|
return *(u32*)(secureArea + (pos - 0x4000));
|
||||||
|
|
||||||
|
|
|
@ -17,11 +17,13 @@
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include "types.h"
|
#include "types.h"
|
||||||
|
|
||||||
#ifdef HAVE_JIT
|
#ifdef HAVE_JIT
|
||||||
#if !defined(HOST_32) && !defined(HOST_64)
|
#if !defined(HOST_32) && !defined(HOST_64)
|
||||||
#error "ERROR: JIT compiler - unsupported target platform"
|
#error "ERROR: JIT compiler - unsupported target platform"
|
||||||
#endif
|
#endif
|
||||||
#ifdef _WINDOWS
|
|
||||||
|
#ifdef HOST_WINDOWS
|
||||||
// **** Windows port
|
// **** Windows port
|
||||||
#else
|
#else
|
||||||
#include <sys/mman.h>
|
#include <sys/mman.h>
|
||||||
|
@ -30,6 +32,7 @@
|
||||||
#include <stddef.h>
|
#include <stddef.h>
|
||||||
#define HAVE_STATIC_CODE_BUFFER
|
#define HAVE_STATIC_CODE_BUFFER
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include "instructions.h"
|
#include "instructions.h"
|
||||||
#include "instruction_attributes.h"
|
#include "instruction_attributes.h"
|
||||||
#include "Disassembler.h"
|
#include "Disassembler.h"
|
||||||
|
|
|
@ -21,10 +21,18 @@
|
||||||
|
|
||||||
//analyze microsoft compilers
|
//analyze microsoft compilers
|
||||||
#ifdef _MSC_VER
|
#ifdef _MSC_VER
|
||||||
#define HOST_WINDOWS
|
#define HOST_WINDOWS
|
||||||
//todo - everyone will want to support this eventually, i suppose
|
|
||||||
#include "config.h"
|
#if defined(__x86_64__) || defined(__LP64) || defined(__IA64__) || defined(_M_X64) || defined(_WIN64)
|
||||||
#endif
|
#define HOST_64
|
||||||
|
#else
|
||||||
|
#define HOST_32
|
||||||
|
#endif
|
||||||
|
|
||||||
|
//todo - everyone will want to support this eventually, i suppose
|
||||||
|
#include "config.h"
|
||||||
|
|
||||||
|
#endif //_MSC_VER
|
||||||
|
|
||||||
//enforce a constraint: gdb stub requires developer
|
//enforce a constraint: gdb stub requires developer
|
||||||
#if defined(GDB_STUB) && !defined(DEVELOPER)
|
#if defined(GDB_STUB) && !defined(DEVELOPER)
|
||||||
|
|
|
@ -15,6 +15,8 @@
|
||||||
along with the this software. If not, see <http://www.gnu.org/licenses/>.
|
along with the this software. If not, see <http://www.gnu.org/licenses/>.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#include "types.h"
|
||||||
|
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <string>
|
#include <string>
|
||||||
#ifdef HOST_WINDOWS
|
#ifdef HOST_WINDOWS
|
||||||
|
|
Loading…
Reference in New Issue