2013-01-23 21:01:11 +00:00
|
|
|
/******************************************************************************\
|
2014-10-09 20:45:55 +00:00
|
|
|
* Project: Basic MIPS R4000 Instruction Set for Scalar Unit Operations *
|
2013-01-23 21:01:11 +00:00
|
|
|
* Authors: Iconoclast *
|
2018-03-17 06:26:27 +00:00
|
|
|
* Release: 2018.03.17 *
|
2013-12-17 12:36:56 +00:00
|
|
|
* License: CC0 Public Domain Dedication *
|
|
|
|
* *
|
|
|
|
* To the extent possible under law, the author(s) have dedicated all copyright *
|
|
|
|
* and related and neighboring rights to this software to the public domain *
|
|
|
|
* worldwide. This software is distributed without any warranty. *
|
|
|
|
* *
|
|
|
|
* You should have received a copy of the CC0 Public Domain Dedication along *
|
|
|
|
* with this software. *
|
|
|
|
* If not, see <http://creativecommons.org/publicdomain/zero/1.0/>. *
|
2013-01-23 21:01:11 +00:00
|
|
|
\******************************************************************************/
|
2014-10-09 20:45:55 +00:00
|
|
|
|
|
|
|
#ifndef _SU_H_
|
|
|
|
#define _SU_H_
|
|
|
|
|
2015-11-30 20:04:57 +00:00
|
|
|
#include <limits.h>
|
2014-10-09 20:45:55 +00:00
|
|
|
#include <stdio.h>
|
2015-11-30 20:04:57 +00:00
|
|
|
|
2014-10-09 20:45:55 +00:00
|
|
|
#include "my_types.h"
|
2014-12-08 14:52:24 +00:00
|
|
|
#include "rsp.h"
|
2014-10-09 20:45:55 +00:00
|
|
|
|
|
|
|
#define SEMAPHORE_LOCK_CORRECTIONS
|
|
|
|
#define WAIT_FOR_CPU_HOST
|
|
|
|
|
|
|
|
#if (0)
|
|
|
|
#define SP_EXECUTE_LOG
|
|
|
|
#define VU_EMULATE_SCALAR_ACCUMULATOR_READ
|
|
|
|
#endif
|
|
|
|
|
2015-02-19 02:04:19 +00:00
|
|
|
/*
|
|
|
|
* Currently, the plugin system this module is written for doesn't notify us
|
2018-03-17 06:26:27 +00:00
|
|
|
* of how much RDRAM is installed to the system, so we'll use signal handlers
|
|
|
|
* to catch memory segment access faults in the trial search to find it out.
|
2015-02-19 02:04:19 +00:00
|
|
|
*/
|
2018-03-17 06:26:27 +00:00
|
|
|
extern unsigned long su_max_address;
|
2015-02-19 02:04:19 +00:00
|
|
|
|
2015-11-14 16:12:42 +00:00
|
|
|
/*
|
|
|
|
* Interact with memory using server-side byte order (MIPS big-endian) or
|
|
|
|
* client-side (VM host's) native byte order on a 32-bit boundary.
|
|
|
|
*
|
|
|
|
* Unfortunately, most op-codes are optimized to require this to be TRUE.
|
|
|
|
*/
|
|
|
|
#if (ENDIAN_M == 0)
|
2015-12-03 16:44:39 +00:00
|
|
|
#define USE_CLIENT_ENDIAN 0
|
2015-11-14 16:12:42 +00:00
|
|
|
#else
|
2015-12-03 16:44:39 +00:00
|
|
|
#define USE_CLIENT_ENDIAN 1
|
2015-11-14 16:12:42 +00:00
|
|
|
#endif
|
|
|
|
|
2015-11-28 05:40:10 +00:00
|
|
|
/*
|
|
|
|
* Always keep this enabled for faster interpreter CPU.
|
|
|
|
*
|
|
|
|
* If you disable this, the branch delay slot algorithm will match the
|
|
|
|
* documentation found in the MIPS manuals (which is not entirely accurate).
|
|
|
|
*
|
|
|
|
* Enabled:
|
|
|
|
* while (CPU_running) {
|
|
|
|
* PC = static_delay_slot_adjustments();
|
|
|
|
* switch (opcode) { ... continue; }
|
|
|
|
* Disabled:
|
|
|
|
* while (CPU_running) {
|
|
|
|
* switch (opcode) { ... break; }
|
|
|
|
* PC = documented_branch_delay_slot();
|
|
|
|
* continue;
|
|
|
|
*/
|
|
|
|
#if 1
|
|
|
|
#define EMULATE_STATIC_PC
|
|
|
|
#endif
|
|
|
|
|
2015-11-28 17:41:21 +00:00
|
|
|
#if (0 != 0)
|
|
|
|
#define PROFILE_MODE static NOINLINE
|
|
|
|
#else
|
|
|
|
#define PROFILE_MODE static INLINE
|
|
|
|
#endif
|
|
|
|
|
2015-11-28 19:55:44 +00:00
|
|
|
typedef enum {
|
|
|
|
zero = 0,
|
2018-03-17 16:56:52 +00:00
|
|
|
|
2015-11-28 19:55:44 +00:00
|
|
|
at = 1,
|
2018-03-17 16:56:52 +00:00
|
|
|
|
2015-11-28 19:55:44 +00:00
|
|
|
#ifdef TRUE_MIPS_AND_NOT_JUST_THE_RSP_SUBSET
|
|
|
|
v0 = 2,
|
|
|
|
v1 = 3,
|
|
|
|
|
|
|
|
a0 = 4,
|
|
|
|
a1 = 5,
|
|
|
|
a2 = 6,
|
|
|
|
a3 = 7,
|
|
|
|
|
|
|
|
t0 = 8,
|
|
|
|
t1 = 9,
|
|
|
|
t2 = 10,
|
|
|
|
t3 = 11,
|
|
|
|
t4 = 12,
|
|
|
|
t5 = 13,
|
|
|
|
t6 = 14,
|
|
|
|
t7 = 15,
|
|
|
|
t8 = 24,
|
|
|
|
t9 = 25,
|
|
|
|
|
|
|
|
s0 = 16,
|
|
|
|
s1 = 17,
|
|
|
|
s2 = 18,
|
|
|
|
s3 = 19,
|
|
|
|
s4 = 20,
|
|
|
|
s5 = 21,
|
|
|
|
s6 = 22,
|
|
|
|
s7 = 23,
|
|
|
|
|
|
|
|
k0 = 26,
|
|
|
|
k1 = 27,
|
|
|
|
|
|
|
|
gp = 28,
|
|
|
|
#endif
|
|
|
|
sp = 29,
|
|
|
|
fp = 30, /* new, official MIPS name for it: "frame pointer" */
|
|
|
|
ra = 31,
|
2018-03-17 16:56:52 +00:00
|
|
|
|
2018-03-17 17:56:18 +00:00
|
|
|
NUMBER_OF_SCALAR_REGISTERS,
|
2018-03-17 16:56:52 +00:00
|
|
|
S8 = fp /* older name for GPR $fp as of the R4000 ISA */
|
2015-11-28 19:55:44 +00:00
|
|
|
} GPR_specifier;
|
|
|
|
|
2014-10-10 05:37:41 +00:00
|
|
|
extern RSP_INFO RSP_INFO_NAME;
|
2014-12-09 04:47:50 +00:00
|
|
|
extern pu8 DRAM;
|
|
|
|
extern pu8 DMEM;
|
|
|
|
extern pu8 IMEM;
|
2014-10-10 05:37:41 +00:00
|
|
|
|
2018-03-17 17:56:18 +00:00
|
|
|
extern u8 conf[];
|
2013-01-23 21:01:11 +00:00
|
|
|
|
2013-03-20 22:42:54 +00:00
|
|
|
/*
|
2015-02-18 20:02:14 +00:00
|
|
|
* general-purpose scalar registers
|
|
|
|
*
|
|
|
|
* based on the MIPS instruction set architecture but without most of the
|
|
|
|
* original register names (for example, no kernel-reserved registers)
|
2013-03-20 22:42:54 +00:00
|
|
|
*/
|
2018-03-17 16:56:52 +00:00
|
|
|
extern u32 SR[];
|
2013-03-20 22:42:54 +00:00
|
|
|
|
2015-11-27 22:48:13 +00:00
|
|
|
#define FIT_IMEM(PC) ((PC) & 0xFFFu & 0xFFCu)
|
2013-12-01 17:44:19 +00:00
|
|
|
|
2014-10-09 20:45:55 +00:00
|
|
|
#ifdef EMULATE_STATIC_PC
|
2015-11-28 15:27:46 +00:00
|
|
|
#define JUMP goto set_branch_delay
|
2014-10-09 20:45:55 +00:00
|
|
|
#else
|
2014-12-13 21:34:48 +00:00
|
|
|
#define JUMP break
|
2014-10-09 20:45:55 +00:00
|
|
|
#endif
|
2013-08-19 06:49:13 +00:00
|
|
|
|
2013-09-04 04:14:29 +00:00
|
|
|
#ifdef EMULATE_STATIC_PC
|
|
|
|
#define BASE_OFF 0x000
|
|
|
|
#else
|
|
|
|
#define BASE_OFF 0x004
|
|
|
|
#endif
|
|
|
|
|
2013-12-04 23:16:28 +00:00
|
|
|
#ifndef EMULATE_STATIC_PC
|
2014-10-09 20:45:55 +00:00
|
|
|
int stage;
|
|
|
|
#endif
|
|
|
|
|
|
|
|
extern int temp_PC;
|
|
|
|
#ifdef WAIT_FOR_CPU_HOST
|
2018-03-17 17:56:18 +00:00
|
|
|
extern short MFC0_count[];
|
2014-10-09 20:45:55 +00:00
|
|
|
/* Keep one C0 MF status read count for each scalar register. */
|
2013-12-04 23:16:28 +00:00
|
|
|
#endif
|
2014-10-09 20:45:55 +00:00
|
|
|
|
2015-02-18 20:06:36 +00:00
|
|
|
/*
|
|
|
|
* The number of times to tolerate executing `MFC0 $at, $c4`.
|
|
|
|
* Replace $at with any register--the timeout limit is per each.
|
|
|
|
*
|
|
|
|
* Set to a higher value to avoid prematurely quitting the interpreter.
|
|
|
|
* Set to a lower value for speed...you could get away with 10 sometimes.
|
|
|
|
*/
|
2015-03-11 00:32:21 +00:00
|
|
|
extern int MF_SP_STATUS_TIMEOUT;
|
2015-02-18 20:06:36 +00:00
|
|
|
|
2015-11-28 05:40:10 +00:00
|
|
|
#define SLOT_OFF ((BASE_OFF) + 0x000)
|
|
|
|
#define LINK_OFF ((BASE_OFF) + 0x004)
|
2015-01-29 13:58:37 +00:00
|
|
|
extern void set_PC(unsigned int address);
|
2013-08-19 06:49:13 +00:00
|
|
|
|
2015-11-30 21:48:26 +00:00
|
|
|
/*
|
|
|
|
* If the client CPU's shift amount is exactly 5 bits for a 32-bit source,
|
|
|
|
* then omit emulating (sa & 31) in the SLL/SRL/SRA interpreter steps.
|
|
|
|
* (Additionally, omit doing (GPR[rs] & 31) in SLLV/SRLV/SRAV.)
|
|
|
|
*
|
|
|
|
* As C pre-processor logic seems incapable of interpreting type storage,
|
|
|
|
* stuff like #if (1U << 31 == 1U << ~0U) will generally just fail.
|
2016-11-06 02:35:10 +00:00
|
|
|
*
|
|
|
|
* Some of these also will only work assuming 2's complement (e.g., Intel).
|
2015-11-30 21:48:26 +00:00
|
|
|
*/
|
2017-03-05 04:36:21 +00:00
|
|
|
#if defined(ARCH_MIN_SSE2) && !defined(SSE2NEON)
|
2016-11-06 02:35:10 +00:00
|
|
|
#define MASK_SA(sa) (sa)
|
|
|
|
#define IW_RD(inst) ((u16)(inst) >> 11)
|
|
|
|
#define SIGNED_IMM16(imm) (s16)(imm)
|
2015-11-30 21:48:26 +00:00
|
|
|
#else
|
2016-11-06 02:35:10 +00:00
|
|
|
#define MASK_SA(sa) ((sa) & 31)
|
|
|
|
#define IW_RD(inst) (u8)(((inst) >> 11) % (1 << 5))
|
|
|
|
#define SIGNED_IMM16(imm) (s16)(((imm) & 0x8000u) ? -(~(imm) + 1) : (imm))
|
2013-08-19 06:49:13 +00:00
|
|
|
#endif
|
|
|
|
|
2015-11-30 22:01:58 +00:00
|
|
|
/*
|
|
|
|
* If primary op-code is SPECIAL (000000), we could skip ANDing the rs shift.
|
|
|
|
* Shifts losing precision are undefined, so don't assume that (1 >> 1 == 0).
|
|
|
|
*/
|
|
|
|
#if (0xFFFFFFFFul >> 31 != 0x000000001ul) || defined(_DEBUG)
|
2015-06-08 04:14:28 +00:00
|
|
|
#define SPECIAL_DECODE_RS(inst) (((inst) & 0x03E00000UL) >> 21)
|
|
|
|
#else
|
|
|
|
#define SPECIAL_DECODE_RS(inst) ((inst) >> 21)
|
|
|
|
#endif
|
|
|
|
|
2015-12-01 03:02:07 +00:00
|
|
|
/*
|
|
|
|
* Try to stick to (unsigned char) to conform to strict aliasing rules.
|
|
|
|
*
|
|
|
|
* Do not say `u8`. My custom type definitions are minimum-size types.
|
|
|
|
* Do not say `uint8_t`. Exact-width types are not portable/universal.
|
|
|
|
*/
|
2015-11-30 20:04:57 +00:00
|
|
|
#if (CHAR_BIT != 8)
|
|
|
|
#error Non-POSIX-compliant (char) storage width.
|
|
|
|
#endif
|
2015-02-19 03:01:19 +00:00
|
|
|
|
2013-11-25 03:22:32 +00:00
|
|
|
/*
|
2015-12-01 03:02:07 +00:00
|
|
|
* RSP general-purpose registers (GPRs) are always 32-bit scalars (SRs).
|
|
|
|
* SR_B(gpr, 0) is SR[gpr]31..24, and SR_B(gpr, 3) is SR[gpr]7..0.
|
2013-11-25 03:22:32 +00:00
|
|
|
*/
|
2015-12-01 03:02:07 +00:00
|
|
|
#define SR_B(scalar, i) *((unsigned char *)&(SR[scalar]) + BES(i))
|
2013-11-25 03:22:32 +00:00
|
|
|
|
|
|
|
/*
|
2015-12-01 03:02:07 +00:00
|
|
|
* Universal byte-access macro for 8-element vectors of 16-bit halfwords.
|
2013-11-25 03:22:32 +00:00
|
|
|
* Use this macro if you are not sure whether the element is odd or even.
|
2015-12-01 03:02:07 +00:00
|
|
|
*
|
|
|
|
* Maybe a typedef union{} can be better, but it's less readable for RSP
|
|
|
|
* vector registers. Only 16-bit element computations exist, so the correct
|
|
|
|
* allocation of the register file is int16_t v[32][8], not a_union v[32].
|
|
|
|
*
|
|
|
|
* Either method--dynamic union reads or special aliasing--is undefined
|
|
|
|
* behavior and will not truly be portable code anyway, so it hardly matters.
|
2013-11-25 03:22:32 +00:00
|
|
|
*/
|
2015-12-01 03:02:07 +00:00
|
|
|
#define VR_B(vt, element) *((unsigned char *)&(VR[vt][0]) + MES(element))
|
2013-11-25 03:22:32 +00:00
|
|
|
|
|
|
|
/*
|
|
|
|
* Optimized byte-access macros for the vector registers.
|
2015-12-01 03:02:07 +00:00
|
|
|
* Use these ONLY if you know the element is even (VR_A) or odd (VR_U).
|
|
|
|
*
|
|
|
|
* They are faster because LEA PTR [offset +/- 1] means fewer CPU
|
|
|
|
* instructions generated than (offset ^ 1) does, in most cases.
|
2013-11-25 03:22:32 +00:00
|
|
|
*/
|
2015-12-01 03:02:07 +00:00
|
|
|
#define VR_A(vt, e) *((unsigned char *)&(VR[vt][0]) + e + MES(0))
|
|
|
|
#define VR_U(vt, e) *((unsigned char *)&(VR[vt][0]) + e - MES(0))
|
2013-11-25 03:22:32 +00:00
|
|
|
|
|
|
|
/*
|
|
|
|
* Use this ONLY if you know the element is even, not odd.
|
|
|
|
*
|
2015-12-01 03:02:07 +00:00
|
|
|
* This is only provided for purposes of consistency with VR_B() and friends.
|
|
|
|
* Saying `VR[vt][1] = x;` instead of `VR_S(vt, 2) = x` works as well.
|
2013-11-25 03:22:32 +00:00
|
|
|
*/
|
2015-12-01 03:02:07 +00:00
|
|
|
#define VR_S(vt, element) *(pi16)((unsigned char *)&(VR[vt][0]) + element)
|
2014-10-09 20:45:55 +00:00
|
|
|
|
|
|
|
/*** Scalar, Coprocessor Operations (system control) ***/
|
2015-01-28 01:24:37 +00:00
|
|
|
#define SP_STATUS_HALT (0x00000001ul << 0)
|
|
|
|
#define SP_STATUS_BROKE (0x00000001ul << 1)
|
|
|
|
#define SP_STATUS_DMA_BUSY (0x00000001ul << 2)
|
|
|
|
#define SP_STATUS_DMA_FULL (0x00000001ul << 3)
|
|
|
|
#define SP_STATUS_IO_FULL (0x00000001ul << 4)
|
|
|
|
#define SP_STATUS_SSTEP (0x00000001ul << 5)
|
|
|
|
#define SP_STATUS_INTR_BREAK (0x00000001ul << 6)
|
|
|
|
#define SP_STATUS_SIG0 (0x00000001ul << 7)
|
|
|
|
#define SP_STATUS_SIG1 (0x00000001ul << 8)
|
|
|
|
#define SP_STATUS_SIG2 (0x00000001ul << 9)
|
|
|
|
#define SP_STATUS_SIG3 (0x00000001ul << 10)
|
|
|
|
#define SP_STATUS_SIG4 (0x00000001ul << 11)
|
|
|
|
#define SP_STATUS_SIG5 (0x00000001ul << 12)
|
|
|
|
#define SP_STATUS_SIG6 (0x00000001ul << 13)
|
|
|
|
#define SP_STATUS_SIG7 (0x00000001ul << 14)
|
2014-10-10 05:37:41 +00:00
|
|
|
|
2018-03-17 17:56:18 +00:00
|
|
|
enum {
|
|
|
|
RCP_SP_MEM_ADDR_REG,
|
|
|
|
RCP_SP_DRAM_ADDR_REG,
|
|
|
|
RCP_SP_RD_LEN_REG,
|
|
|
|
RCP_SP_WR_LEN_REG,
|
|
|
|
RCP_SP_STATUS_REG,
|
|
|
|
RCP_SP_DMA_FULL_REG,
|
|
|
|
RCP_SP_DMA_BUSY_REG,
|
|
|
|
RCP_SP_SEMAPHORE_REG,
|
|
|
|
|
|
|
|
RCP_DPC_START_REG,
|
|
|
|
RCP_DPC_END_REG,
|
|
|
|
RCP_DPC_CURRENT_REG,
|
|
|
|
RCP_DPC_STATUS_REG,
|
|
|
|
RCP_DPC_CLOCK_REG,
|
|
|
|
RCP_DPC_BUFBUSY_REG,
|
|
|
|
RCP_DPC_PIPEBUSY_REG,
|
|
|
|
RCP_DPC_TMEM_REG,
|
|
|
|
|
|
|
|
NUMBER_OF_CP0_REGISTERS
|
|
|
|
} CPR_specifier;
|
|
|
|
extern pu32 CR[];
|
2014-10-10 05:37:41 +00:00
|
|
|
|
2014-10-09 20:45:55 +00:00
|
|
|
extern void SP_DMA_READ(void);
|
|
|
|
extern void SP_DMA_WRITE(void);
|
|
|
|
|
2014-12-13 21:34:48 +00:00
|
|
|
extern u16 rwR_VCE(void);
|
|
|
|
extern void rwW_VCE(u16 VCE);
|
2013-09-15 06:19:59 +00:00
|
|
|
|
2015-01-29 13:58:37 +00:00
|
|
|
extern void MFC2(unsigned int rt, unsigned int vs, unsigned int e);
|
|
|
|
extern void MTC2(unsigned int rt, unsigned int vd, unsigned int e);
|
|
|
|
extern void CFC2(unsigned int rt, unsigned int rd);
|
|
|
|
extern void CTC2(unsigned int rt, unsigned int rd);
|
2013-08-19 06:49:13 +00:00
|
|
|
|
2014-10-09 20:45:55 +00:00
|
|
|
/*** Modern pseudo-operations (not real instructions, but nice shortcuts) ***/
|
2015-01-29 13:58:37 +00:00
|
|
|
extern void ULW(unsigned int rd, u32 addr);
|
|
|
|
extern void USW(unsigned int rs, u32 addr);
|
2013-08-23 06:01:43 +00:00
|
|
|
|
2014-10-09 20:45:55 +00:00
|
|
|
/*
|
|
|
|
* The scalar unit controls the primary R4000 operations implementation,
|
|
|
|
* which inherently includes interfacing with the vector unit under COP2.
|
|
|
|
*
|
|
|
|
* Although no scalar unit operations are computational vector operations,
|
|
|
|
* several of them will access machine states shared with the vector unit.
|
|
|
|
*
|
|
|
|
* We will need access to the vector unit's vector register file and its
|
|
|
|
* vector control register file used mainly for vector select instructions.
|
|
|
|
*/
|
|
|
|
#include "vu/select.h"
|
2013-08-23 06:01:43 +00:00
|
|
|
|
2014-10-09 20:45:55 +00:00
|
|
|
NOINLINE extern void res_S(void);
|
2013-09-27 06:48:41 +00:00
|
|
|
|
2015-01-29 13:58:37 +00:00
|
|
|
extern void SP_CP0_MF(unsigned int rt, unsigned int rd);
|
2013-12-01 17:44:19 +00:00
|
|
|
|
2014-12-11 11:34:01 +00:00
|
|
|
/*
|
|
|
|
* example syntax (basically the same for all LWC2/SWC2 ops):
|
|
|
|
* LTWV $v0[0], -64($at)
|
|
|
|
* SBV $v0[9], 0xFFE($0)
|
|
|
|
*/
|
2015-01-29 13:58:37 +00:00
|
|
|
typedef void(*mwc2_func)(
|
|
|
|
unsigned int vt,
|
|
|
|
unsigned int element,
|
|
|
|
signed int offset,
|
|
|
|
unsigned int base
|
|
|
|
);
|
2014-12-11 11:34:01 +00:00
|
|
|
|
|
|
|
extern mwc2_func LWC2[2 * 8*2];
|
|
|
|
extern mwc2_func SWC2[2 * 8*2];
|
|
|
|
|
2015-01-29 13:58:37 +00:00
|
|
|
extern void res_lsw(
|
|
|
|
unsigned int vt,
|
|
|
|
unsigned int element,
|
|
|
|
signed int offset,
|
|
|
|
unsigned int base
|
|
|
|
);
|
2014-12-11 11:34:01 +00:00
|
|
|
|
2014-10-09 20:45:55 +00:00
|
|
|
/*** Scalar, Coprocessor Operations (vector unit, scalar cache transfers) ***/
|
2015-01-29 13:58:37 +00:00
|
|
|
extern void LBV(unsigned vt, unsigned element, signed offset, unsigned base);
|
|
|
|
extern void LSV(unsigned vt, unsigned element, signed offset, unsigned base);
|
|
|
|
extern void LLV(unsigned vt, unsigned element, signed offset, unsigned base);
|
|
|
|
extern void LDV(unsigned vt, unsigned element, signed offset, unsigned base);
|
|
|
|
extern void SBV(unsigned vt, unsigned element, signed offset, unsigned base);
|
|
|
|
extern void SSV(unsigned vt, unsigned element, signed offset, unsigned base);
|
|
|
|
extern void SLV(unsigned vt, unsigned element, signed offset, unsigned base);
|
|
|
|
extern void SDV(unsigned vt, unsigned element, signed offset, unsigned base);
|
2013-08-25 03:35:11 +00:00
|
|
|
|
|
|
|
/*
|
|
|
|
* Group II vector loads and stores:
|
|
|
|
* PV and UV (As of RCP implementation, XV and ZV are reserved opcodes.)
|
|
|
|
*/
|
2015-01-29 13:58:37 +00:00
|
|
|
extern void LPV(unsigned vt, unsigned element, signed offset, unsigned base);
|
|
|
|
extern void LUV(unsigned vt, unsigned element, signed offset, unsigned base);
|
|
|
|
extern void SPV(unsigned vt, unsigned element, signed offset, unsigned base);
|
|
|
|
extern void SUV(unsigned vt, unsigned element, signed offset, unsigned base);
|
2013-08-25 03:35:11 +00:00
|
|
|
|
|
|
|
/*
|
|
|
|
* Group III vector loads and stores:
|
|
|
|
* HV, FV, and AV (As of RCP implementation, AV opcodes are reserved.)
|
|
|
|
*/
|
2015-01-29 13:58:37 +00:00
|
|
|
extern void LHV(unsigned vt, unsigned element, signed offset, unsigned base);
|
|
|
|
extern void LFV(unsigned vt, unsigned element, signed offset, unsigned base);
|
|
|
|
extern void SHV(unsigned vt, unsigned element, signed offset, unsigned base);
|
|
|
|
extern void SFV(unsigned vt, unsigned element, signed offset, unsigned base);
|
2013-08-25 03:35:11 +00:00
|
|
|
|
|
|
|
/*
|
|
|
|
* Group IV vector loads and stores:
|
|
|
|
* QV and RV
|
|
|
|
*/
|
2015-01-29 13:58:37 +00:00
|
|
|
extern void LQV(unsigned vt, unsigned element, signed offset, unsigned base);
|
|
|
|
extern void LRV(unsigned vt, unsigned element, signed offset, unsigned base);
|
|
|
|
extern void SQV(unsigned vt, unsigned element, signed offset, unsigned base);
|
|
|
|
extern void SRV(unsigned vt, unsigned element, signed offset, unsigned base);
|
2013-08-25 03:35:11 +00:00
|
|
|
|
|
|
|
/*
|
|
|
|
* Group V vector loads and stores
|
|
|
|
* TV and SWV (As of RCP implementation, LTWV opcode was undesired.)
|
|
|
|
*/
|
2015-01-29 13:58:37 +00:00
|
|
|
extern void LTV(unsigned vt, unsigned element, signed offset, unsigned base);
|
|
|
|
extern void SWV(unsigned vt, unsigned element, signed offset, unsigned base);
|
|
|
|
extern void STV(unsigned vt, unsigned element, signed offset, unsigned base);
|
2013-08-23 06:01:43 +00:00
|
|
|
|
2014-10-09 20:45:55 +00:00
|
|
|
NOINLINE extern void run_task(void);
|
2013-09-04 20:59:32 +00:00
|
|
|
|
2013-01-23 21:01:11 +00:00
|
|
|
#endif
|