Merge pull request #669 from qeeg/master

Some compile fixes for clang. Still doesn't compile, but still :P
This commit is contained in:
OBattler
2020-04-03 18:00:42 +02:00
committed by GitHub
2 changed files with 3 additions and 0 deletions

View File

@@ -19,6 +19,8 @@
#ifndef _386_COMMON_H_
#define _386_COMMON_H_
#include <stddef.h>
#ifdef USE_NEW_DYNAREC
#define readmemb(s,a) ((readlookup2[(uint32_t)((s)+(a))>>12]==-1)?readmembl((s)+(a)): *(uint8_t *)(readlookup2[(uint32_t)((s)+(a))>>12] + (uint32_t)((s) + (a))) )
#define readmemw(s,a) ((readlookup2[(uint32_t)((s)+(a))>>12]==-1 || (((s)+(a)) & 1))?readmemwl((s)+(a)):*(uint16_t *)(readlookup2[(uint32_t)((s)+(a))>>12]+(uint32_t)((s)+(a))))

View File

@@ -2,6 +2,7 @@
#define _CODEGEN_H_
#include <86box/mem.h>
#include <stddef.h>
#include "../cpu_common/x86_ops.h"
/*Handling self-modifying code (of which there is a lot on x86) :