dyncom: Move helper functions to their own header
This commit is contained in:
parent
6b73e4566b
commit
0191c26521
10 changed files with 57 additions and 41 deletions
|
@ -7,6 +7,7 @@
|
|||
#include "common/make_unique.h"
|
||||
|
||||
#include "core/arm/skyeye_common/armdefs.h"
|
||||
#include "core/arm/skyeye_common/armsupp.h"
|
||||
#include "core/arm/skyeye_common/vfp/vfp.h"
|
||||
|
||||
#include "core/arm/dyncom/arm_dyncom.h"
|
||||
|
|
|
@ -2,8 +2,8 @@
|
|||
// Licensed under GPLv2 or any later version
|
||||
// Refer to the license.txt file included.
|
||||
|
||||
#include "core/arm/skyeye_common/armdefs.h"
|
||||
#include "core/arm/dyncom/arm_dyncom_dec.h"
|
||||
#include "core/arm/skyeye_common/armsupp.h"
|
||||
|
||||
const ISEITEM arm_instruction[] = {
|
||||
{ "vmla", 4, ARMVFP2, { 23, 27, 0x1C, 20, 21, 0x0, 9, 11, 0x5, 4, 4, 0 }},
|
||||
|
@ -414,7 +414,7 @@ const ISEITEM arm_exclusion_code[] = {
|
|||
{ "invalid", 0, INVALID, { 0 }}
|
||||
};
|
||||
|
||||
int decode_arm_instr(uint32_t instr, int32_t *idx) {
|
||||
int decode_arm_instr(u32 instr, s32* idx) {
|
||||
int n = 0;
|
||||
int base = 0;
|
||||
int ret = DECODE_FAILURE;
|
||||
|
|
|
@ -4,7 +4,9 @@
|
|||
|
||||
#pragma once
|
||||
|
||||
int decode_arm_instr(uint32_t instr, int32_t *idx);
|
||||
#include "common/common_types.h"
|
||||
|
||||
int decode_arm_instr(u32 instr, s32* idx);
|
||||
|
||||
enum DECODE_STATUS {
|
||||
DECODE_SUCCESS,
|
||||
|
|
|
@ -19,6 +19,7 @@
|
|||
#include "core/arm/dyncom/arm_dyncom_run.h"
|
||||
#include "core/arm/skyeye_common/armdefs.h"
|
||||
#include "core/arm/skyeye_common/armmmu.h"
|
||||
#include "core/arm/skyeye_common/armsupp.h"
|
||||
#include "core/arm/skyeye_common/vfp/vfp.h"
|
||||
|
||||
Common::Profiling::TimingCategory profile_execute("DynCom::Execute");
|
||||
|
|
|
@ -6,6 +6,7 @@
|
|||
// ARM instruction, and using the existing ARM simulator.
|
||||
|
||||
#include "core/arm/dyncom/arm_dyncom_thumb.h"
|
||||
#include "core/arm/skyeye_common/armsupp.h"
|
||||
|
||||
// Decode a 16bit Thumb instruction. The instruction is in the low 16-bits of the tinstr field,
|
||||
// with the following Thumb instruction held in the high 16-bits. Passing in two Thumb instructions
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue