From e7008485980df71b3fe7b8fb8c8e70a8cb405421 Mon Sep 17 00:00:00 2001 From: Toni Wilen Date: Fri, 9 Aug 2019 12:39:08 +0300 Subject: [PATCH] Cleanups. --- disasm.cpp | 2 +- newcpu.cpp | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/disasm.cpp b/disasm.cpp index cf2849b7..2f4c40c2 100644 --- a/disasm.cpp +++ b/disasm.cpp @@ -66,7 +66,7 @@ static const int datasizes[] = { static void showea_val(TCHAR *buffer, uae_u16 opcode, uaecptr addr, int size) { struct mnemolookup *lookup; - instr *table = &table68k[opcode]; + struct instr *table = &table68k[opcode]; if (addr >= 0xe90000 && addr < 0xf00000) goto skip; diff --git a/newcpu.cpp b/newcpu.cpp index 76a8cfee..84516cce 100644 --- a/newcpu.cpp +++ b/newcpu.cpp @@ -1620,7 +1620,7 @@ static void flush_cpu_caches_040_2(int cache, int scope, uaecptr addr, bool push pagesize = 16; } addr &= ~(pagesize - 1); - for (int j = 0; j < pagesize; j += 16, addr += 16) { + for (uae_u32 j = 0; j < pagesize; j += 16, addr += 16) { int index; uae_u32 tag; uae_u32 tagmask; @@ -1821,7 +1821,7 @@ static void build_cpufunctbl (void) opcnt = 0; for (opcode = 0; opcode < 65536; opcode++) { cpuop_func *f; - instr *table = &table68k[opcode]; + struct instr *table = &table68k[opcode]; if (table->mnemo == i_ILLG) continue; @@ -5138,7 +5138,7 @@ static void m68k_run_mmu060 (void) /* Aranym MMU 68040 */ static void m68k_run_mmu040 (void) { - flag_struct f; + struct flag_struct f; int halt = 0; check_halt(); -- 2.47.3