summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorGravatar Lioncash2015-01-30 15:52:58 -0500
committerGravatar Lioncash2015-01-30 16:16:58 -0500
commit83bc1a3120e124a13c397bac205ed46fe4a386a0 (patch)
tree38eaecf56d5b2df1f708ba2ef83d626fad0a6143 /src
parentarm: Clean out armos.h and armmmu.h (diff)
downloadyuzu-83bc1a3120e124a13c397bac205ed46fe4a386a0.tar.gz
yuzu-83bc1a3120e124a13c397bac205ed46fe4a386a0.tar.xz
yuzu-83bc1a3120e124a13c397bac205ed46fe4a386a0.zip
arm: Get rid of armcpu.h and skyeye_types.h
Diffstat (limited to 'src')
-rw-r--r--src/core/CMakeLists.txt2
-rw-r--r--src/core/arm/dyncom/arm_dyncom.cpp1
-rw-r--r--src/core/arm/dyncom/arm_dyncom_run.h2
-rw-r--r--src/core/arm/dyncom/arm_dyncom_thumb.h1
-rw-r--r--src/core/arm/skyeye_common/armcpu.h78
-rw-r--r--src/core/arm/skyeye_common/skyeye_types.h31
6 files changed, 0 insertions, 115 deletions
diff --git a/src/core/CMakeLists.txt b/src/core/CMakeLists.txt
index 3e1578969..2168d9959 100644
--- a/src/core/CMakeLists.txt
+++ b/src/core/CMakeLists.txt
@@ -110,13 +110,11 @@ set(HEADERS
110 arm/dyncom/arm_dyncom_thumb.h 110 arm/dyncom/arm_dyncom_thumb.h
111 arm/interpreter/arm_interpreter.h 111 arm/interpreter/arm_interpreter.h
112 arm/skyeye_common/arm_regformat.h 112 arm/skyeye_common/arm_regformat.h
113 arm/skyeye_common/armcpu.h
114 arm/skyeye_common/armdefs.h 113 arm/skyeye_common/armdefs.h
115 arm/skyeye_common/armemu.h 114 arm/skyeye_common/armemu.h
116 arm/skyeye_common/armmmu.h 115 arm/skyeye_common/armmmu.h
117 arm/skyeye_common/armos.h 116 arm/skyeye_common/armos.h
118 arm/skyeye_common/skyeye_defs.h 117 arm/skyeye_common/skyeye_defs.h
119 arm/skyeye_common/skyeye_types.h
120 arm/skyeye_common/vfp/asm_vfp.h 118 arm/skyeye_common/vfp/asm_vfp.h
121 arm/skyeye_common/vfp/vfp.h 119 arm/skyeye_common/vfp/vfp.h
122 arm/skyeye_common/vfp/vfp_helper.h 120 arm/skyeye_common/vfp/vfp_helper.h
diff --git a/src/core/arm/dyncom/arm_dyncom.cpp b/src/core/arm/dyncom/arm_dyncom.cpp
index 9c4cc90f2..01ffbcc87 100644
--- a/src/core/arm/dyncom/arm_dyncom.cpp
+++ b/src/core/arm/dyncom/arm_dyncom.cpp
@@ -2,7 +2,6 @@
2// Licensed under GPLv2 or any later version 2// Licensed under GPLv2 or any later version
3// Refer to the license.txt file included. 3// Refer to the license.txt file included.
4 4
5#include "core/arm/skyeye_common/armcpu.h"
6#include "core/arm/skyeye_common/armemu.h" 5#include "core/arm/skyeye_common/armemu.h"
7#include "core/arm/skyeye_common/vfp/vfp.h" 6#include "core/arm/skyeye_common/vfp/vfp.h"
8 7
diff --git a/src/core/arm/dyncom/arm_dyncom_run.h b/src/core/arm/dyncom/arm_dyncom_run.h
index c70522274..c477002b0 100644
--- a/src/core/arm/dyncom/arm_dyncom_run.h
+++ b/src/core/arm/dyncom/arm_dyncom_run.h
@@ -19,8 +19,6 @@
19#ifndef __ARM_DYNCOM_RUN__ 19#ifndef __ARM_DYNCOM_RUN__
20#define __ARM_DYNCOM_RUN__ 20#define __ARM_DYNCOM_RUN__
21 21
22#include "core/arm/skyeye_common/skyeye_types.h"
23
24void switch_mode(arm_core_t *core, uint32_t mode); 22void switch_mode(arm_core_t *core, uint32_t mode);
25 23
26/* FIXME, we temporarily think thumb instruction is always 16 bit */ 24/* FIXME, we temporarily think thumb instruction is always 16 bit */
diff --git a/src/core/arm/dyncom/arm_dyncom_thumb.h b/src/core/arm/dyncom/arm_dyncom_thumb.h
index bf69b2fd4..7ca8062bf 100644
--- a/src/core/arm/dyncom/arm_dyncom_thumb.h
+++ b/src/core/arm/dyncom/arm_dyncom_thumb.h
@@ -28,7 +28,6 @@
28#define __ARM_DYNCOM_THUMB_H__ 28#define __ARM_DYNCOM_THUMB_H__
29 29
30#include "core/arm/skyeye_common/armdefs.h" 30#include "core/arm/skyeye_common/armdefs.h"
31#include "core/arm/skyeye_common/skyeye_types.h"
32 31
33enum tdstate { 32enum tdstate {
34 t_undefined, // Undefined Thumb instruction 33 t_undefined, // Undefined Thumb instruction
diff --git a/src/core/arm/skyeye_common/armcpu.h b/src/core/arm/skyeye_common/armcpu.h
deleted file mode 100644
index 2b756c5bc..000000000
--- a/src/core/arm/skyeye_common/armcpu.h
+++ /dev/null
@@ -1,78 +0,0 @@
1/*
2 * arm
3 * armcpu.h
4 *
5 * Copyright (C) 2003, 2004 Sebastian Biallas (sb@biallas.net)
6 *
7 * This program is free software; you can redistribute it and/or modify
8 * it under the terms of the GNU General Public License version 2 as
9 * published by the Free Software Foundation.
10 *
11 * This program is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 * GNU General Public License for more details.
15 *
16 * You should have received a copy of the GNU General Public License
17 * along with this program; if not, write to the Free Software
18 * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
19 */
20
21#ifndef __ARM_CPU_H__
22#define __ARM_CPU_H__
23
24#include <stddef.h>
25#include <stdio.h>
26
27#include "core/arm/skyeye_common/armdefs.h"
28
29typedef struct ARM_CPU_State_s {
30 ARMul_State * core;
31 uint32_t core_num;
32 /* The core id that boot from
33 */
34 uint32_t boot_core_id;
35}ARM_CPU_State;
36
37//static ARM_CPU_State* get_current_cpu(){
38// machine_config_t* mach = get_current_mach();
39// /* Casting a conf_obj_t to ARM_CPU_State type */
40// ARM_CPU_State* cpu = (ARM_CPU_State*)mach->cpu_data->obj;
41//
42// return cpu;
43//}
44
45/**
46* @brief Get the core instance boot from
47*
48* @return
49*/
50//static ARMul_State* get_boot_core(){
51// ARM_CPU_State* cpu = get_current_cpu();
52// return &cpu->core[cpu->boot_core_id];
53//}
54/**
55* @brief Get the instance of running core
56*
57* @return the core instance
58*/
59//static ARMul_State* get_current_core(){
60// /* Casting a conf_obj_t to ARM_CPU_State type */
61// int id = Common::CurrentThreadId();
62// /* If thread is not in running mode, we should give the boot core */
63// if(get_thread_state(id) != Running_state){
64// return get_boot_core();
65// }
66// /* Judge if we are running in paralell or sequenial */
67// if(thread_exist(id)){
68// conf_object_t* conf_obj = get_current_exec_priv(id);
69// return (ARMul_State*)get_cast_conf_obj(conf_obj, "arm_core_t");
70// }
71//
72// return NULL;
73//}
74
75#define CURRENT_CORE get_current_core()
76
77#endif
78
diff --git a/src/core/arm/skyeye_common/skyeye_types.h b/src/core/arm/skyeye_common/skyeye_types.h
deleted file mode 100644
index fc7d8d922..000000000
--- a/src/core/arm/skyeye_common/skyeye_types.h
+++ /dev/null
@@ -1,31 +0,0 @@
1/*
2 skyeye_types.h - some data types definition for skyeye debugger
3 Copyright (C) 2003 Skyeye Develop Group
4 for help please send mail to <skyeye-developer@lists.sf.linuxforum.net>
5
6 This program is free software; you can redistribute it and/or modify
7 it under the terms of the GNU General Public License as published by
8 the Free Software Foundation; either version 2 of the License, or
9 (at your option) any later version.
10
11 This program is distributed in the hope that it will be useful,
12 but WITHOUT ANY WARRANTY; without even the implied warranty of
13 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 GNU General Public License for more details.
15
16 You should have received a copy of the GNU General Public License
17 along with this program; if not, write to the Free Software
18 Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
19
20*/
21/*
22 * 12/16/2006 Michael.Kang <blackfin.kang@gmail.com>
23 */
24
25#pragma once
26
27#include <cstdint>
28
29typedef uint32_t address_t;
30typedef uint32_t physical_address_t;
31typedef uint32_t generic_address_t;