2015-06-11 15:31:31 -04:00
|
|
|
#pragma once
|
|
|
|
|
2016-05-10 00:54:27 -04:00
|
|
|
#include <boost/format.hpp>
|
2015-06-11 15:31:31 -04:00
|
|
|
#include <iostream>
|
|
|
|
#include <iomanip>
|
2015-09-16 21:41:44 -04:00
|
|
|
#include <cassert>
|
|
|
|
#include <sys/time.h>
|
2016-05-19 03:50:22 -04:00
|
|
|
#include <fcntl.h>
|
|
|
|
#include <sys/stat.h>
|
2016-05-08 07:45:30 -04:00
|
|
|
#include <list>
|
2016-05-21 13:45:28 -04:00
|
|
|
#include <map>
|
2015-06-11 15:31:31 -04:00
|
|
|
using namespace std;
|
2016-05-10 00:54:27 -04:00
|
|
|
using boost::format;
|
2015-06-11 15:31:31 -04:00
|
|
|
|
2016-05-08 18:03:26 -04:00
|
|
|
#define bailout(expr) do { if(expr) { cout << "Bailout: " << #expr << " @ " << __FILE__ << " (" << dec << __LINE__ << ")" << endl; exit(1); } } while(0)
|
|
|
|
|
2016-05-19 21:23:32 -04:00
|
|
|
#define IN(a, b) (((b).find(a)) != (b).end())
|
|
|
|
|
2016-05-20 05:38:36 -04:00
|
|
|
// Xbox has 64MB RAM, Chihiro has 128 MB RAM
|
2016-05-20 05:17:51 -04:00
|
|
|
#define RAM_SIZE (128 * ONE_MB)
|
|
|
|
#define KRAM_SIZE (128 * ONE_MB)
|
2015-06-11 15:31:31 -04:00
|
|
|
|
2016-05-20 05:38:36 -04:00
|
|
|
#define KBASE 0xC0000000
|
|
|
|
|
2016-06-04 18:50:30 -04:00
|
|
|
#include "libretro.h"
|
|
|
|
|
2016-05-17 14:37:00 -04:00
|
|
|
#include "HV.hpp"
|
|
|
|
#ifdef MAC
|
|
|
|
#include "Mac/HVMac.hpp"
|
|
|
|
#endif
|
|
|
|
|
2016-05-19 03:50:22 -04:00
|
|
|
#include "Shared.hpp"
|
2016-05-10 21:18:38 -04:00
|
|
|
#include "Hypercall.hpp"
|
2016-05-08 18:30:33 -04:00
|
|
|
#include "xbetypes.hpp"
|
2015-06-11 15:31:31 -04:00
|
|
|
#include "Xbe.hpp"
|
2016-05-21 13:45:28 -04:00
|
|
|
|
2016-05-20 14:05:33 -04:00
|
|
|
#include "Device.hpp"
|
2015-06-11 15:31:31 -04:00
|
|
|
#include "Cpu.hpp"
|
2016-05-19 21:23:32 -04:00
|
|
|
#include "Gpu.hpp"
|
2016-05-21 13:45:28 -04:00
|
|
|
#include "Lpc.hpp"
|
|
|
|
#include "Smbus.hpp"
|
|
|
|
|
2016-05-15 11:02:38 -04:00
|
|
|
#include "HandleManager.hpp"
|
2016-05-08 07:45:30 -04:00
|
|
|
#include "PageManager.hpp"
|
2016-05-08 21:18:47 -04:00
|
|
|
#include "ThreadManager.hpp"
|
2016-05-19 03:50:22 -04:00
|
|
|
#include "Ioctls.hpp"
|
2016-05-11 03:06:23 -04:00
|
|
|
#include "IOManager.hpp"
|
2016-05-10 00:54:27 -04:00
|
|
|
#include "Debugger.hpp"
|
2016-05-08 07:45:30 -04:00
|
|
|
#include "Box.hpp"
|