summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Lioncash2015-05-23 21:28:26 -0400
committerGravatar Lioncash2015-05-23 21:28:26 -0400
commit99b1f868a3efaff92c1dc6f8760f7b830ba30e0b (patch)
treecd660f784d8700268bb7d43a98db5b4151ae10c6
parentMerge pull request #805 from lioncash/warn (diff)
parentdyncom: Get rid of armemu.h (diff)
downloadyuzu-99b1f868a3efaff92c1dc6f8760f7b830ba30e0b.tar.gz
yuzu-99b1f868a3efaff92c1dc6f8760f7b830ba30e0b.tar.xz
yuzu-99b1f868a3efaff92c1dc6f8760f7b830ba30e0b.zip
Merge pull request #809 from lioncash/header
dyncom: Get rid of armemu.h
-rw-r--r--src/core/CMakeLists.txt1
-rw-r--r--src/core/arm/dyncom/arm_dyncom.cpp2
-rw-r--r--src/core/arm/interpreter/arminit.cpp1
-rw-r--r--src/core/arm/skyeye_common/armdefs.h28
-rw-r--r--src/core/arm/skyeye_common/armemu.h47
5 files changed, 29 insertions, 50 deletions
diff --git a/src/core/CMakeLists.txt b/src/core/CMakeLists.txt
index 5caaee474..42b4be938 100644
--- a/src/core/CMakeLists.txt
+++ b/src/core/CMakeLists.txt
@@ -116,7 +116,6 @@ set(HEADERS
116 arm/dyncom/arm_dyncom_thumb.h 116 arm/dyncom/arm_dyncom_thumb.h
117 arm/skyeye_common/arm_regformat.h 117 arm/skyeye_common/arm_regformat.h
118 arm/skyeye_common/armdefs.h 118 arm/skyeye_common/armdefs.h
119 arm/skyeye_common/armemu.h
120 arm/skyeye_common/armmmu.h 119 arm/skyeye_common/armmmu.h
121 arm/skyeye_common/vfp/asm_vfp.h 120 arm/skyeye_common/vfp/asm_vfp.h
122 arm/skyeye_common/vfp/vfp.h 121 arm/skyeye_common/vfp/vfp.h
diff --git a/src/core/arm/dyncom/arm_dyncom.cpp b/src/core/arm/dyncom/arm_dyncom.cpp
index 0072ae533..529c4ac70 100644
--- a/src/core/arm/dyncom/arm_dyncom.cpp
+++ b/src/core/arm/dyncom/arm_dyncom.cpp
@@ -6,7 +6,7 @@
6 6
7#include "common/make_unique.h" 7#include "common/make_unique.h"
8 8
9#include "core/arm/skyeye_common/armemu.h" 9#include "core/arm/skyeye_common/armdefs.h"
10#include "core/arm/skyeye_common/vfp/vfp.h" 10#include "core/arm/skyeye_common/vfp/vfp.h"
11 11
12#include "core/arm/dyncom/arm_dyncom.h" 12#include "core/arm/dyncom/arm_dyncom.h"
diff --git a/src/core/arm/interpreter/arminit.cpp b/src/core/arm/interpreter/arminit.cpp
index 680a94a39..4f7a48fab 100644
--- a/src/core/arm/interpreter/arminit.cpp
+++ b/src/core/arm/interpreter/arminit.cpp
@@ -17,7 +17,6 @@
17 17
18#include <cstring> 18#include <cstring>
19#include "core/arm/skyeye_common/armdefs.h" 19#include "core/arm/skyeye_common/armdefs.h"
20#include "core/arm/skyeye_common/armemu.h"
21#include "core/arm/skyeye_common/vfp/vfp.h" 20#include "core/arm/skyeye_common/vfp/vfp.h"
22 21
23/***************************************************************************\ 22/***************************************************************************\
diff --git a/src/core/arm/skyeye_common/armdefs.h b/src/core/arm/skyeye_common/armdefs.h
index 470f9508d..08ece69b6 100644
--- a/src/core/arm/skyeye_common/armdefs.h
+++ b/src/core/arm/skyeye_common/armdefs.h
@@ -262,6 +262,34 @@ enum ConditionCode {
262 NV = 15, 262 NV = 15,
263}; 263};
264 264
265// Flags for use with the APSR.
266enum : u32 {
267 NBIT = (1U << 31U),
268 ZBIT = (1 << 30),
269 CBIT = (1 << 29),
270 VBIT = (1 << 28),
271 QBIT = (1 << 27),
272 JBIT = (1 << 24),
273 EBIT = (1 << 9),
274 ABIT = (1 << 8),
275 IBIT = (1 << 7),
276 FBIT = (1 << 6),
277 TBIT = (1 << 5),
278
279 // Masks for groups of bits in the APSR.
280 MODEBITS = 0x1F,
281 INTBITS = 0x1C0,
282};
283
284// Values for Emulate.
285enum {
286 STOP = 0, // Stop
287 CHANGEMODE = 1, // Change mode
288 ONCE = 2, // Execute just one iteration
289 RUN = 3 // Continuous execution
290};
291
292
265extern bool AddOverflow(ARMword, ARMword, ARMword); 293extern bool AddOverflow(ARMword, ARMword, ARMword);
266extern bool SubOverflow(ARMword, ARMword, ARMword); 294extern bool SubOverflow(ARMword, ARMword, ARMword);
267 295
diff --git a/src/core/arm/skyeye_common/armemu.h b/src/core/arm/skyeye_common/armemu.h
deleted file mode 100644
index 7e0965052..000000000
--- a/src/core/arm/skyeye_common/armemu.h
+++ /dev/null
@@ -1,47 +0,0 @@
1/* armemu.h -- ARMulator emulation macros: ARM6 Instruction Emulator.
2 Copyright (C) 1994 Advanced RISC Machines Ltd.
3
4 This program is free software; you can redistribute it and/or modify
5 it under the terms of the GNU General Public License as published by
6 the Free Software Foundation; either version 2 of the License, or
7 (at your option) any later version.
8
9 This program is distributed in the hope that it will be useful,
10 but WITHOUT ANY WARRANTY; without even the implied warranty of
11 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 GNU General Public License for more details.
13
14 You should have received a copy of the GNU General Public License
15 along with this program; if not, write to the Free Software
16 Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
17
18#pragma once
19
20#include "core/arm/skyeye_common/armdefs.h"
21
22// Flags for use with the APSR.
23enum : u32 {
24 NBIT = (1U << 31U),
25 ZBIT = (1 << 30),
26 CBIT = (1 << 29),
27 VBIT = (1 << 28),
28 QBIT = (1 << 27),
29 JBIT = (1 << 24),
30 EBIT = (1 << 9),
31 ABIT = (1 << 8),
32 IBIT = (1 << 7),
33 FBIT = (1 << 6),
34 TBIT = (1 << 5),
35
36 // Masks for groups of bits in the APSR.
37 MODEBITS = 0x1F,
38 INTBITS = 0x1C0,
39};
40
41// Values for Emulate.
42enum {
43 STOP = 0, // Stop
44 CHANGEMODE = 1, // Change mode
45 ONCE = 2, // Execute just one interation
46 RUN = 3 // Continuous execution
47};