|
|
|
@ -143,7 +143,7 @@
|
|
|
|
|
|
|
|
|
|
static inline void vis_set_gsr(unsigned int _val)
|
|
|
|
|
{
|
|
|
|
|
register unsigned int val asm("g1");
|
|
|
|
|
unsigned int val asm("g1");
|
|
|
|
|
|
|
|
|
|
val = _val;
|
|
|
|
|
__asm__ __volatile__(".word 0xa7804000"
|
|
|
|
@ -165,7 +165,7 @@ static inline void vis_set_gsr(unsigned int _val)
|
|
|
|
|
#define vis_st64_2(rs1,mem1,mem2) vis_r2m_2(std, rs1, mem1, mem2)
|
|
|
|
|
|
|
|
|
|
#define vis_ldblk(mem, rd) \
|
|
|
|
|
do { register void *__mem asm("g1"); \
|
|
|
|
|
do { void *__mem asm("g1"); \
|
|
|
|
|
__mem = &(mem); \
|
|
|
|
|
__asm__ __volatile__(".word 0xc1985e00 | %1" \
|
|
|
|
|
: \
|
|
|
|
@ -175,7 +175,7 @@ do { register void *__mem asm("g1"); \
|
|
|
|
|
} while (0)
|
|
|
|
|
|
|
|
|
|
#define vis_stblk(rd, mem) \
|
|
|
|
|
do { register void *__mem asm("g1"); \
|
|
|
|
|
do { void *__mem asm("g1"); \
|
|
|
|
|
__mem = &(mem); \
|
|
|
|
|
__asm__ __volatile__(".word 0xc1b85e00 | %1" \
|
|
|
|
|
: \
|
|
|
|
@ -227,7 +227,7 @@ do { register void *__mem asm("g1"); \
|
|
|
|
|
|
|
|
|
|
static inline void *vis_alignaddr(void *_ptr)
|
|
|
|
|
{
|
|
|
|
|
register void *ptr asm("g1");
|
|
|
|
|
void *ptr asm("g1");
|
|
|
|
|
|
|
|
|
|
ptr = _ptr;
|
|
|
|
|
|
|
|
|
@ -244,7 +244,7 @@ static inline void *vis_alignaddr(void *_ptr)
|
|
|
|
|
|
|
|
|
|
static inline void vis_alignaddr_g0(void *_ptr)
|
|
|
|
|
{
|
|
|
|
|
register void *ptr asm("g1");
|
|
|
|
|
void *ptr asm("g1");
|
|
|
|
|
|
|
|
|
|
ptr = _ptr;
|
|
|
|
|
|
|
|
|
@ -259,7 +259,7 @@ static inline void vis_alignaddr_g0(void *_ptr)
|
|
|
|
|
|
|
|
|
|
static inline void *vis_alignaddrl(void *_ptr)
|
|
|
|
|
{
|
|
|
|
|
register void *ptr asm("g1");
|
|
|
|
|
void *ptr asm("g1");
|
|
|
|
|
|
|
|
|
|
ptr = _ptr;
|
|
|
|
|
|
|
|
|
@ -276,7 +276,7 @@ static inline void *vis_alignaddrl(void *_ptr)
|
|
|
|
|
|
|
|
|
|
static inline void vis_alignaddrl_g0(void *_ptr)
|
|
|
|
|
{
|
|
|
|
|
register void *ptr asm("g1");
|
|
|
|
|
void *ptr asm("g1");
|
|
|
|
|
|
|
|
|
|
ptr = _ptr;
|
|
|
|
|
|
|
|
|
|