2005-07-02 16:58:51 +02:00
|
|
|
/*
|
|
|
|
* MIPS emulation memory micro-operations for qemu.
|
2007-09-16 23:08:06 +02:00
|
|
|
*
|
2005-07-02 16:58:51 +02:00
|
|
|
* Copyright (c) 2004-2005 Jocelyn Mayer
|
|
|
|
*
|
|
|
|
* This library is free software; you can redistribute it and/or
|
|
|
|
* modify it under the terms of the GNU Lesser General Public
|
|
|
|
* License as published by the Free Software Foundation; either
|
|
|
|
* version 2 of the License, or (at your option) any later version.
|
|
|
|
*
|
|
|
|
* This library is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
|
|
* Lesser General Public License for more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU Lesser General Public
|
|
|
|
* License along with this library; if not, write to the Free Software
|
|
|
|
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
|
|
|
*/
|
|
|
|
|
|
|
|
/* Standard loads and stores */
|
|
|
|
void glue(op_lb, MEMSUFFIX) (void)
|
|
|
|
{
|
|
|
|
T0 = glue(ldsb, MEMSUFFIX)(T0);
|
2007-11-10 00:09:41 +01:00
|
|
|
FORCE_RET();
|
2005-07-02 16:58:51 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
void glue(op_lbu, MEMSUFFIX) (void)
|
|
|
|
{
|
|
|
|
T0 = glue(ldub, MEMSUFFIX)(T0);
|
2007-11-10 00:09:41 +01:00
|
|
|
FORCE_RET();
|
2005-07-02 16:58:51 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
void glue(op_sb, MEMSUFFIX) (void)
|
|
|
|
{
|
|
|
|
glue(stb, MEMSUFFIX)(T0, T1);
|
2007-11-10 00:09:41 +01:00
|
|
|
FORCE_RET();
|
2005-07-02 16:58:51 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
void glue(op_lh, MEMSUFFIX) (void)
|
|
|
|
{
|
|
|
|
T0 = glue(ldsw, MEMSUFFIX)(T0);
|
2007-11-10 00:09:41 +01:00
|
|
|
FORCE_RET();
|
2005-07-02 16:58:51 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
void glue(op_lhu, MEMSUFFIX) (void)
|
|
|
|
{
|
|
|
|
T0 = glue(lduw, MEMSUFFIX)(T0);
|
2007-11-10 00:09:41 +01:00
|
|
|
FORCE_RET();
|
2005-07-02 16:58:51 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
void glue(op_sh, MEMSUFFIX) (void)
|
|
|
|
{
|
|
|
|
glue(stw, MEMSUFFIX)(T0, T1);
|
2007-11-10 00:09:41 +01:00
|
|
|
FORCE_RET();
|
2005-07-02 16:58:51 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
void glue(op_lw, MEMSUFFIX) (void)
|
|
|
|
{
|
|
|
|
T0 = glue(ldl, MEMSUFFIX)(T0);
|
2007-11-10 00:09:41 +01:00
|
|
|
FORCE_RET();
|
2005-07-02 16:58:51 +02:00
|
|
|
}
|
|
|
|
|
2006-06-26 22:02:45 +02:00
|
|
|
void glue(op_lwu, MEMSUFFIX) (void)
|
|
|
|
{
|
2007-05-28 19:09:41 +02:00
|
|
|
T0 = (uint32_t)glue(ldl, MEMSUFFIX)(T0);
|
2007-11-10 00:09:41 +01:00
|
|
|
FORCE_RET();
|
2006-06-26 22:02:45 +02:00
|
|
|
}
|
|
|
|
|
2005-07-02 16:58:51 +02:00
|
|
|
void glue(op_sw, MEMSUFFIX) (void)
|
|
|
|
{
|
|
|
|
glue(stl, MEMSUFFIX)(T0, T1);
|
2007-11-10 00:09:41 +01:00
|
|
|
FORCE_RET();
|
2005-07-02 16:58:51 +02:00
|
|
|
}
|
|
|
|
|
2005-12-05 20:59:36 +01:00
|
|
|
/* "half" load and stores. We must do the memory access inline,
|
|
|
|
or fault handling won't work. */
|
2007-10-09 05:12:08 +02:00
|
|
|
|
|
|
|
#ifdef TARGET_WORDS_BIGENDIAN
|
|
|
|
#define GET_LMASK(v) ((v) & 3)
|
|
|
|
#define GET_OFFSET(addr, offset) (addr + (offset))
|
|
|
|
#else
|
|
|
|
#define GET_LMASK(v) (((v) & 3) ^ 3)
|
|
|
|
#define GET_OFFSET(addr, offset) (addr - (offset))
|
|
|
|
#endif
|
|
|
|
|
2005-07-02 16:58:51 +02:00
|
|
|
void glue(op_lwl, MEMSUFFIX) (void)
|
|
|
|
{
|
2007-10-09 05:12:08 +02:00
|
|
|
target_ulong tmp;
|
|
|
|
|
|
|
|
tmp = glue(ldub, MEMSUFFIX)(T0);
|
2007-10-24 01:23:43 +02:00
|
|
|
T1 = (T1 & 0x00FFFFFF) | (tmp << 24);
|
2007-10-09 05:12:08 +02:00
|
|
|
|
|
|
|
if (GET_LMASK(T0) <= 2) {
|
|
|
|
tmp = glue(ldub, MEMSUFFIX)(GET_OFFSET(T0, 1));
|
|
|
|
T1 = (T1 & 0xFF00FFFF) | (tmp << 16);
|
|
|
|
}
|
|
|
|
|
|
|
|
if (GET_LMASK(T0) <= 1) {
|
|
|
|
tmp = glue(ldub, MEMSUFFIX)(GET_OFFSET(T0, 2));
|
|
|
|
T1 = (T1 & 0xFFFF00FF) | (tmp << 8);
|
|
|
|
}
|
|
|
|
|
|
|
|
if (GET_LMASK(T0) == 0) {
|
|
|
|
tmp = glue(ldub, MEMSUFFIX)(GET_OFFSET(T0, 3));
|
|
|
|
T1 = (T1 & 0xFFFFFF00) | tmp;
|
|
|
|
}
|
2007-10-24 01:23:43 +02:00
|
|
|
T1 = (int32_t)T1;
|
2007-11-10 00:09:41 +01:00
|
|
|
FORCE_RET();
|
2005-07-02 16:58:51 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
void glue(op_lwr, MEMSUFFIX) (void)
|
|
|
|
{
|
2007-10-09 05:12:08 +02:00
|
|
|
target_ulong tmp;
|
|
|
|
|
|
|
|
tmp = glue(ldub, MEMSUFFIX)(T0);
|
|
|
|
T1 = (T1 & 0xFFFFFF00) | tmp;
|
|
|
|
|
|
|
|
if (GET_LMASK(T0) >= 1) {
|
|
|
|
tmp = glue(ldub, MEMSUFFIX)(GET_OFFSET(T0, -1));
|
|
|
|
T1 = (T1 & 0xFFFF00FF) | (tmp << 8);
|
|
|
|
}
|
|
|
|
|
|
|
|
if (GET_LMASK(T0) >= 2) {
|
|
|
|
tmp = glue(ldub, MEMSUFFIX)(GET_OFFSET(T0, -2));
|
|
|
|
T1 = (T1 & 0xFF00FFFF) | (tmp << 16);
|
|
|
|
}
|
|
|
|
|
|
|
|
if (GET_LMASK(T0) == 3) {
|
|
|
|
tmp = glue(ldub, MEMSUFFIX)(GET_OFFSET(T0, -3));
|
|
|
|
T1 = (T1 & 0x00FFFFFF) | (tmp << 24);
|
|
|
|
}
|
2007-10-24 01:23:43 +02:00
|
|
|
T1 = (int32_t)T1;
|
2007-11-10 00:09:41 +01:00
|
|
|
FORCE_RET();
|
2005-07-02 16:58:51 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
void glue(op_swl, MEMSUFFIX) (void)
|
|
|
|
{
|
2007-10-09 05:12:08 +02:00
|
|
|
glue(stb, MEMSUFFIX)(T0, (uint8_t)(T1 >> 24));
|
|
|
|
|
|
|
|
if (GET_LMASK(T0) <= 2)
|
|
|
|
glue(stb, MEMSUFFIX)(GET_OFFSET(T0, 1), (uint8_t)(T1 >> 16));
|
|
|
|
|
|
|
|
if (GET_LMASK(T0) <= 1)
|
|
|
|
glue(stb, MEMSUFFIX)(GET_OFFSET(T0, 2), (uint8_t)(T1 >> 8));
|
|
|
|
|
|
|
|
if (GET_LMASK(T0) == 0)
|
|
|
|
glue(stb, MEMSUFFIX)(GET_OFFSET(T0, 3), (uint8_t)T1);
|
|
|
|
|
2007-11-10 00:09:41 +01:00
|
|
|
FORCE_RET();
|
2005-07-02 16:58:51 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
void glue(op_swr, MEMSUFFIX) (void)
|
|
|
|
{
|
2007-10-09 05:12:08 +02:00
|
|
|
glue(stb, MEMSUFFIX)(T0, (uint8_t)T1);
|
|
|
|
|
|
|
|
if (GET_LMASK(T0) >= 1)
|
|
|
|
glue(stb, MEMSUFFIX)(GET_OFFSET(T0, -1), (uint8_t)(T1 >> 8));
|
|
|
|
|
|
|
|
if (GET_LMASK(T0) >= 2)
|
|
|
|
glue(stb, MEMSUFFIX)(GET_OFFSET(T0, -2), (uint8_t)(T1 >> 16));
|
|
|
|
|
|
|
|
if (GET_LMASK(T0) == 3)
|
|
|
|
glue(stb, MEMSUFFIX)(GET_OFFSET(T0, -3), (uint8_t)(T1 >> 24));
|
|
|
|
|
2007-11-10 00:09:41 +01:00
|
|
|
FORCE_RET();
|
2005-07-02 16:58:51 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
void glue(op_ll, MEMSUFFIX) (void)
|
|
|
|
{
|
|
|
|
T1 = T0;
|
|
|
|
T0 = glue(ldl, MEMSUFFIX)(T0);
|
|
|
|
env->CP0_LLAddr = T1;
|
2007-11-10 00:09:41 +01:00
|
|
|
FORCE_RET();
|
2005-07-02 16:58:51 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
void glue(op_sc, MEMSUFFIX) (void)
|
|
|
|
{
|
|
|
|
CALL_FROM_TB0(dump_sc);
|
2007-04-09 16:14:21 +02:00
|
|
|
if (T0 & 0x3) {
|
|
|
|
env->CP0_BadVAddr = T0;
|
|
|
|
CALL_FROM_TB1(do_raise_exception, EXCP_AdES);
|
|
|
|
}
|
2005-07-02 16:58:51 +02:00
|
|
|
if (T0 == env->CP0_LLAddr) {
|
|
|
|
glue(stl, MEMSUFFIX)(T0, T1);
|
|
|
|
T0 = 1;
|
|
|
|
} else {
|
|
|
|
T0 = 0;
|
|
|
|
}
|
2007-11-10 00:09:41 +01:00
|
|
|
FORCE_RET();
|
2005-07-02 16:58:51 +02:00
|
|
|
}
|
2006-06-14 14:56:19 +02:00
|
|
|
|
2007-11-08 19:05:37 +01:00
|
|
|
#if defined(TARGET_MIPS64)
|
2006-12-21 02:19:56 +01:00
|
|
|
void glue(op_ld, MEMSUFFIX) (void)
|
|
|
|
{
|
|
|
|
T0 = glue(ldq, MEMSUFFIX)(T0);
|
2007-11-10 00:09:41 +01:00
|
|
|
FORCE_RET();
|
2006-12-21 02:19:56 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
void glue(op_sd, MEMSUFFIX) (void)
|
|
|
|
{
|
|
|
|
glue(stq, MEMSUFFIX)(T0, T1);
|
2007-11-10 00:09:41 +01:00
|
|
|
FORCE_RET();
|
2006-12-21 02:19:56 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
/* "half" load and stores. We must do the memory access inline,
|
|
|
|
or fault handling won't work. */
|
2007-10-09 05:12:08 +02:00
|
|
|
|
|
|
|
#ifdef TARGET_WORDS_BIGENDIAN
|
|
|
|
#define GET_LMASK64(v) ((v) & 7)
|
|
|
|
#else
|
|
|
|
#define GET_LMASK64(v) (((v) & 7) ^ 7)
|
|
|
|
#endif
|
|
|
|
|
2006-12-21 02:19:56 +01:00
|
|
|
void glue(op_ldl, MEMSUFFIX) (void)
|
|
|
|
{
|
2007-10-09 05:12:08 +02:00
|
|
|
uint64_t tmp;
|
|
|
|
|
|
|
|
tmp = glue(ldub, MEMSUFFIX)(T0);
|
|
|
|
T1 = (T1 & 0x00FFFFFFFFFFFFFFULL) | (tmp << 56);
|
|
|
|
|
|
|
|
if (GET_LMASK64(T0) <= 6) {
|
|
|
|
tmp = glue(ldub, MEMSUFFIX)(GET_OFFSET(T0, 1));
|
|
|
|
T1 = (T1 & 0xFF00FFFFFFFFFFFFULL) | (tmp << 48);
|
|
|
|
}
|
|
|
|
|
|
|
|
if (GET_LMASK64(T0) <= 5) {
|
|
|
|
tmp = glue(ldub, MEMSUFFIX)(GET_OFFSET(T0, 2));
|
|
|
|
T1 = (T1 & 0xFFFF00FFFFFFFFFFULL) | (tmp << 40);
|
|
|
|
}
|
|
|
|
|
|
|
|
if (GET_LMASK64(T0) <= 4) {
|
|
|
|
tmp = glue(ldub, MEMSUFFIX)(GET_OFFSET(T0, 3));
|
|
|
|
T1 = (T1 & 0xFFFFFF00FFFFFFFFULL) | (tmp << 32);
|
|
|
|
}
|
|
|
|
|
|
|
|
if (GET_LMASK64(T0) <= 3) {
|
|
|
|
tmp = glue(ldub, MEMSUFFIX)(GET_OFFSET(T0, 4));
|
|
|
|
T1 = (T1 & 0xFFFFFFFF00FFFFFFULL) | (tmp << 24);
|
|
|
|
}
|
|
|
|
|
|
|
|
if (GET_LMASK64(T0) <= 2) {
|
|
|
|
tmp = glue(ldub, MEMSUFFIX)(GET_OFFSET(T0, 5));
|
|
|
|
T1 = (T1 & 0xFFFFFFFFFF00FFFFULL) | (tmp << 16);
|
|
|
|
}
|
|
|
|
|
|
|
|
if (GET_LMASK64(T0) <= 1) {
|
|
|
|
tmp = glue(ldub, MEMSUFFIX)(GET_OFFSET(T0, 6));
|
|
|
|
T1 = (T1 & 0xFFFFFFFFFFFF00FFULL) | (tmp << 8);
|
|
|
|
}
|
|
|
|
|
|
|
|
if (GET_LMASK64(T0) == 0) {
|
|
|
|
tmp = glue(ldub, MEMSUFFIX)(GET_OFFSET(T0, 7));
|
|
|
|
T1 = (T1 & 0xFFFFFFFFFFFFFF00ULL) | tmp;
|
|
|
|
}
|
|
|
|
|
2007-11-10 00:09:41 +01:00
|
|
|
FORCE_RET();
|
2006-12-21 02:19:56 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
void glue(op_ldr, MEMSUFFIX) (void)
|
|
|
|
{
|
2007-10-09 05:12:08 +02:00
|
|
|
uint64_t tmp;
|
|
|
|
|
|
|
|
tmp = glue(ldub, MEMSUFFIX)(T0);
|
|
|
|
T1 = (T1 & 0xFFFFFFFFFFFFFF00ULL) | tmp;
|
|
|
|
|
|
|
|
if (GET_LMASK64(T0) >= 1) {
|
|
|
|
tmp = glue(ldub, MEMSUFFIX)(GET_OFFSET(T0, -1));
|
|
|
|
T1 = (T1 & 0xFFFFFFFFFFFF00FFULL) | (tmp << 8);
|
|
|
|
}
|
|
|
|
|
|
|
|
if (GET_LMASK64(T0) >= 2) {
|
|
|
|
tmp = glue(ldub, MEMSUFFIX)(GET_OFFSET(T0, -2));
|
|
|
|
T1 = (T1 & 0xFFFFFFFFFF00FFFFULL) | (tmp << 16);
|
|
|
|
}
|
|
|
|
|
|
|
|
if (GET_LMASK64(T0) >= 3) {
|
|
|
|
tmp = glue(ldub, MEMSUFFIX)(GET_OFFSET(T0, -3));
|
|
|
|
T1 = (T1 & 0xFFFFFFFF00FFFFFFULL) | (tmp << 24);
|
|
|
|
}
|
|
|
|
|
|
|
|
if (GET_LMASK64(T0) >= 4) {
|
|
|
|
tmp = glue(ldub, MEMSUFFIX)(GET_OFFSET(T0, -4));
|
|
|
|
T1 = (T1 & 0xFFFFFF00FFFFFFFFULL) | (tmp << 32);
|
|
|
|
}
|
|
|
|
|
|
|
|
if (GET_LMASK64(T0) >= 5) {
|
|
|
|
tmp = glue(ldub, MEMSUFFIX)(GET_OFFSET(T0, -5));
|
|
|
|
T1 = (T1 & 0xFFFF00FFFFFFFFFFULL) | (tmp << 40);
|
|
|
|
}
|
|
|
|
|
|
|
|
if (GET_LMASK64(T0) >= 6) {
|
|
|
|
tmp = glue(ldub, MEMSUFFIX)(GET_OFFSET(T0, -6));
|
|
|
|
T1 = (T1 & 0xFF00FFFFFFFFFFFFULL) | (tmp << 48);
|
|
|
|
}
|
|
|
|
|
|
|
|
if (GET_LMASK64(T0) == 7) {
|
|
|
|
tmp = glue(ldub, MEMSUFFIX)(GET_OFFSET(T0, -7));
|
|
|
|
T1 = (T1 & 0x00FFFFFFFFFFFFFFULL) | (tmp << 56);
|
|
|
|
}
|
|
|
|
|
2007-11-10 00:09:41 +01:00
|
|
|
FORCE_RET();
|
2006-12-21 02:19:56 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
void glue(op_sdl, MEMSUFFIX) (void)
|
|
|
|
{
|
2007-10-09 05:12:08 +02:00
|
|
|
glue(stb, MEMSUFFIX)(T0, (uint8_t)(T1 >> 56));
|
|
|
|
|
|
|
|
if (GET_LMASK64(T0) <= 6)
|
|
|
|
glue(stb, MEMSUFFIX)(GET_OFFSET(T0, 1), (uint8_t)(T1 >> 48));
|
|
|
|
|
|
|
|
if (GET_LMASK64(T0) <= 5)
|
|
|
|
glue(stb, MEMSUFFIX)(GET_OFFSET(T0, 2), (uint8_t)(T1 >> 40));
|
|
|
|
|
|
|
|
if (GET_LMASK64(T0) <= 4)
|
|
|
|
glue(stb, MEMSUFFIX)(GET_OFFSET(T0, 3), (uint8_t)(T1 >> 32));
|
|
|
|
|
|
|
|
if (GET_LMASK64(T0) <= 3)
|
|
|
|
glue(stb, MEMSUFFIX)(GET_OFFSET(T0, 4), (uint8_t)(T1 >> 24));
|
|
|
|
|
|
|
|
if (GET_LMASK64(T0) <= 2)
|
|
|
|
glue(stb, MEMSUFFIX)(GET_OFFSET(T0, 5), (uint8_t)(T1 >> 16));
|
|
|
|
|
|
|
|
if (GET_LMASK64(T0) <= 1)
|
|
|
|
glue(stb, MEMSUFFIX)(GET_OFFSET(T0, 6), (uint8_t)(T1 >> 8));
|
|
|
|
|
|
|
|
if (GET_LMASK64(T0) <= 0)
|
|
|
|
glue(stb, MEMSUFFIX)(GET_OFFSET(T0, 7), (uint8_t)T1);
|
|
|
|
|
2007-11-10 00:09:41 +01:00
|
|
|
FORCE_RET();
|
2006-12-21 02:19:56 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
void glue(op_sdr, MEMSUFFIX) (void)
|
|
|
|
{
|
2007-10-09 05:12:08 +02:00
|
|
|
glue(stb, MEMSUFFIX)(T0, (uint8_t)T1);
|
|
|
|
|
|
|
|
if (GET_LMASK64(T0) >= 1)
|
|
|
|
glue(stb, MEMSUFFIX)(GET_OFFSET(T0, -1), (uint8_t)(T1 >> 8));
|
|
|
|
|
|
|
|
if (GET_LMASK64(T0) >= 2)
|
|
|
|
glue(stb, MEMSUFFIX)(GET_OFFSET(T0, -2), (uint8_t)(T1 >> 16));
|
|
|
|
|
|
|
|
if (GET_LMASK64(T0) >= 3)
|
|
|
|
glue(stb, MEMSUFFIX)(GET_OFFSET(T0, -3), (uint8_t)(T1 >> 24));
|
|
|
|
|
|
|
|
if (GET_LMASK64(T0) >= 4)
|
|
|
|
glue(stb, MEMSUFFIX)(GET_OFFSET(T0, -4), (uint8_t)(T1 >> 32));
|
|
|
|
|
|
|
|
if (GET_LMASK64(T0) >= 5)
|
|
|
|
glue(stb, MEMSUFFIX)(GET_OFFSET(T0, -5), (uint8_t)(T1 >> 40));
|
|
|
|
|
|
|
|
if (GET_LMASK64(T0) >= 6)
|
|
|
|
glue(stb, MEMSUFFIX)(GET_OFFSET(T0, -6), (uint8_t)(T1 >> 48));
|
|
|
|
|
|
|
|
if (GET_LMASK64(T0) == 7)
|
|
|
|
glue(stb, MEMSUFFIX)(GET_OFFSET(T0, -7), (uint8_t)(T1 >> 56));
|
|
|
|
|
2007-11-10 00:09:41 +01:00
|
|
|
FORCE_RET();
|
2006-12-21 02:19:56 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
void glue(op_lld, MEMSUFFIX) (void)
|
|
|
|
{
|
|
|
|
T1 = T0;
|
|
|
|
T0 = glue(ldq, MEMSUFFIX)(T0);
|
|
|
|
env->CP0_LLAddr = T1;
|
2007-11-10 00:09:41 +01:00
|
|
|
FORCE_RET();
|
2006-12-21 02:19:56 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
void glue(op_scd, MEMSUFFIX) (void)
|
|
|
|
{
|
|
|
|
CALL_FROM_TB0(dump_sc);
|
2007-04-09 16:14:21 +02:00
|
|
|
if (T0 & 0x7) {
|
|
|
|
env->CP0_BadVAddr = T0;
|
|
|
|
CALL_FROM_TB1(do_raise_exception, EXCP_AdES);
|
|
|
|
}
|
2006-12-21 02:19:56 +01:00
|
|
|
if (T0 == env->CP0_LLAddr) {
|
|
|
|
glue(stq, MEMSUFFIX)(T0, T1);
|
|
|
|
T0 = 1;
|
|
|
|
} else {
|
|
|
|
T0 = 0;
|
|
|
|
}
|
2007-11-10 00:09:41 +01:00
|
|
|
FORCE_RET();
|
2006-12-21 02:19:56 +01:00
|
|
|
}
|
2007-11-08 19:05:37 +01:00
|
|
|
#endif /* TARGET_MIPS64 */
|
2006-12-21 02:19:56 +01:00
|
|
|
|
2006-06-14 14:56:19 +02:00
|
|
|
void glue(op_lwc1, MEMSUFFIX) (void)
|
|
|
|
{
|
|
|
|
WT0 = glue(ldl, MEMSUFFIX)(T0);
|
2007-11-10 00:09:41 +01:00
|
|
|
FORCE_RET();
|
2006-06-14 14:56:19 +02:00
|
|
|
}
|
|
|
|
void glue(op_swc1, MEMSUFFIX) (void)
|
|
|
|
{
|
|
|
|
glue(stl, MEMSUFFIX)(T0, WT0);
|
2007-11-10 00:09:41 +01:00
|
|
|
FORCE_RET();
|
2006-06-14 14:56:19 +02:00
|
|
|
}
|
|
|
|
void glue(op_ldc1, MEMSUFFIX) (void)
|
|
|
|
{
|
|
|
|
DT0 = glue(ldq, MEMSUFFIX)(T0);
|
2007-11-10 00:09:41 +01:00
|
|
|
FORCE_RET();
|
2006-06-14 14:56:19 +02:00
|
|
|
}
|
|
|
|
void glue(op_sdc1, MEMSUFFIX) (void)
|
|
|
|
{
|
|
|
|
glue(stq, MEMSUFFIX)(T0, DT0);
|
2007-11-10 00:09:41 +01:00
|
|
|
FORCE_RET();
|
2006-06-14 14:56:19 +02:00
|
|
|
}
|
2007-05-07 15:55:33 +02:00
|
|
|
void glue(op_luxc1, MEMSUFFIX) (void)
|
|
|
|
{
|
2007-05-20 03:36:29 +02:00
|
|
|
DT0 = glue(ldq, MEMSUFFIX)(T0 & ~0x7);
|
2007-11-10 00:09:41 +01:00
|
|
|
FORCE_RET();
|
2007-05-07 15:55:33 +02:00
|
|
|
}
|
|
|
|
void glue(op_suxc1, MEMSUFFIX) (void)
|
|
|
|
{
|
2007-05-20 03:36:29 +02:00
|
|
|
glue(stq, MEMSUFFIX)(T0 & ~0x7, DT0);
|
2007-11-10 00:09:41 +01:00
|
|
|
FORCE_RET();
|
2007-05-07 15:55:33 +02:00
|
|
|
}
|