op.c revision c74415b02478720e356c49b63eaa91c2e145db20
/*
* i386 micro operations
*
* Copyright (c) 2003 Fabrice Bellard
*
* 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
*/
#define ASM_SOFTMMU
#include "exec.h"
/* n must be a constant to be efficient */
{
if (n >= 0)
return x << n;
else
return x >> (-n);
}
/* we define the various pieces of code used by the JIT */
#include "opreg_template.h"
#include "opreg_template.h"
#include "opreg_template.h"
#include "opreg_template.h"
#include "opreg_template.h"
#include "opreg_template.h"
#include "opreg_template.h"
#include "opreg_template.h"
#ifdef TARGET_X86_64
#include "opreg_template.h"
#include "opreg_template.h"
#include "opreg_template.h"
#include "opreg_template.h"
#include "opreg_template.h"
#include "opreg_template.h"
#include "opreg_template.h"
#include "opreg_template.h"
#endif
/* operations with flags */
void OPPROTO op_update2_cc(void)
{
}
/* update flags with T0 (logic operation case) */
void OPPROTO op_update1_cc(void)
{
}
void OPPROTO op_update_neg_cc(void)
{
}
void OPPROTO op_cmpl_T0_T1_cc(void)
{
}
void OPPROTO op_update_inc_cc(void)
{
}
void OPPROTO op_testl_T0_T1_cc(void)
{
}
/* operations without flags */
void OPPROTO op_addl_T0_T1(void)
{
}
void OPPROTO op_orl_T0_T1(void)
{
}
void OPPROTO op_andl_T0_T1(void)
{
}
void OPPROTO op_subl_T0_T1(void)
{
}
void OPPROTO op_xorl_T0_T1(void)
{
}
void OPPROTO op_negl_T0(void)
{
}
void OPPROTO op_incl_T0(void)
{
T0++;
}
void OPPROTO op_decl_T0(void)
{
T0--;
}
void OPPROTO op_notl_T0(void)
{
}
void OPPROTO op_bswapl_T0(void)
{
}
#ifdef TARGET_X86_64
void OPPROTO op_bswapq_T0(void)
{
}
#endif
/* XXX: add eflags optimizations */
/* XXX: add non P4 style flags */
void OPPROTO op_mulb_AL_T0(void)
{
unsigned int res;
}
void OPPROTO op_imulb_AL_T0(void)
{
int res;
}
void OPPROTO op_mulw_AX_T0(void)
{
unsigned int res;
}
void OPPROTO op_imulw_AX_T0(void)
{
int res;
}
void OPPROTO op_mull_EAX_T0(void)
{
}
void OPPROTO op_imull_EAX_T0(void)
{
}
void OPPROTO op_imulw_T0_T1(void)
{
int res;
}
void OPPROTO op_imull_T0_T1(void)
{
}
#ifdef TARGET_X86_64
void OPPROTO op_mulq_EAX_T0(void)
{
}
void OPPROTO op_imulq_EAX_T0(void)
{
}
void OPPROTO op_imulq_T0_T1(void)
{
}
#endif
/* division, flags are undefined */
void OPPROTO op_divb_AL_T0(void)
{
if (den == 0) {
}
if (q > 0xff)
q &= 0xff;
}
void OPPROTO op_idivb_AL_T0(void)
{
if (den == 0) {
}
if (q != (int8_t)q)
q &= 0xff;
}
void OPPROTO op_divw_AX_T0(void)
{
if (den == 0) {
}
if (q > 0xffff)
q &= 0xffff;
}
void OPPROTO op_idivw_AX_T0(void)
{
if (den == 0) {
}
if (q != (int16_t)q)
q &= 0xffff;
}
void OPPROTO op_divl_EAX_T0(void)
{
}
void OPPROTO op_idivl_EAX_T0(void)
{
}
#ifdef TARGET_X86_64
void OPPROTO op_divq_EAX_T0(void)
{
}
void OPPROTO op_idivq_EAX_T0(void)
{
}
#endif
/* constant load & misc op */
/* XXX: consistent names */
void OPPROTO op_movl_T0_imu(void)
{
}
void OPPROTO op_movl_T0_im(void)
{
}
void OPPROTO op_addl_T0_im(void)
{
}
void OPPROTO op_andl_T0_ffff(void)
{
}
void OPPROTO op_andl_T0_im(void)
{
}
void OPPROTO op_movl_T0_T1(void)
{
}
void OPPROTO op_movl_T1_imu(void)
{
}
void OPPROTO op_movl_T1_im(void)
{
}
void OPPROTO op_addl_T1_im(void)
{
}
void OPPROTO op_movl_T1_A0(void)
{
}
void OPPROTO op_movl_A0_im(void)
{
}
void OPPROTO op_addl_A0_im(void)
{
}
void OPPROTO op_movl_A0_seg(void)
{
#ifdef VBOX
/** @todo Not very efficient, but the least invasive. */
/** @todo Pass segment register index as parameter in translate.c. */
}
#if 0 /* breaks Solaris */
/* Loading a null selector into a segment register is valid, but using it is most definitely not! */
}
#endif
FORCE_RET();
#else /* !VBOX */
#endif /* !VBOX */
}
void OPPROTO op_addl_A0_seg(void)
{
#ifdef VBOX
}
#if 0 /* breaks Solaris */
/* Loading a null selector into a segment register is valid, but using it is most definitely not! */
}
#endif
FORCE_RET();
#else /* !VBOX */
#endif /* !VBOX */
}
void OPPROTO op_addl_A0_AL(void)
{
}
#ifdef WORDS_BIGENDIAN
typedef union UREG64 {
uint64_t q;
} UREG64;
#else
typedef union UREG64 {
uint64_t q;
} UREG64;
#endif
#ifdef TARGET_X86_64
#define PARAMQ1 \
({\
__p.q;\
})
void OPPROTO op_movq_T0_im64(void)
{
}
void OPPROTO op_movq_T1_im64(void)
{
}
void OPPROTO op_movq_A0_im(void)
{
}
void OPPROTO op_movq_A0_im64(void)
{
}
void OPPROTO op_addq_A0_im(void)
{
}
void OPPROTO op_addq_A0_im64(void)
{
}
void OPPROTO op_movq_A0_seg(void)
{
#ifdef VBOX
#else /* !VBOX */
#endif /* !VBOX */
}
void OPPROTO op_addq_A0_seg(void)
{
#ifdef VBOX
#else /* !VBOX */
#endif /* !VBOX */
}
void OPPROTO op_addq_A0_AL(void)
{
}
#endif
void OPPROTO op_andl_A0_ffff(void)
{
}
/* memory access */
#include "ops_mem.h"
#if !defined(CONFIG_USER_ONLY)
#include "ops_mem.h"
#include "ops_mem.h"
#endif
/* indirect jump */
{
}
void OPPROTO op_movl_eip_im(void)
{
}
#ifdef TARGET_X86_64
void OPPROTO op_movq_eip_im(void)
{
}
void OPPROTO op_movq_eip_im64(void)
{
}
#endif
{
helper_hlt();
}
void OPPROTO op_monitor(void)
{
}
{
helper_mwait();
}
{
}
void OPPROTO op_raise_interrupt(void)
{
int intno, next_eip_addend;
}
void OPPROTO op_raise_exception(void)
{
int exception_index;
}
{
int eflags;
}
FORCE_RET();
}
{
}
{
}
void OPPROTO op_set_inhibit_irq(void)
{
}
void OPPROTO op_reset_inhibit_irq(void)
{
}
{
helper_rsm();
}
#ifndef VBOX
#if 0
/* vm86plus instructions */
{
}
{
}
FORCE_RET();
}
#endif
#else /* VBOX */
void OPPROTO op_cli_vme(void)
{
}
void OPPROTO op_sti_vme(void)
{
/* First check, then change eflags according to the AMD manual */
}
FORCE_RET();
}
#endif /* VBOX */
{
}
FORCE_RET();
}
{
v = T0;
}
FORCE_RET();
}
void OPPROTO op_cmpxchg8b(void)
{
}
void OPPROTO op_single_step(void)
{
}
void OPPROTO op_movl_T0_0(void)
{
T0 = 0;
}
#ifdef VBOX
void OPPROTO op_check_external_event(void)
{
{
}
}
void OPPROTO op_record_call(void)
{
}
#endif /* VBOX */
void OPPROTO op_exit_tb(void)
{
EXIT_TB();
}
/* multiple size ops */
#define SHIFT 0
#include "ops_template.h"
#define SHIFT 1
#include "ops_template.h"
#define SHIFT 2
#include "ops_template.h"
#ifdef TARGET_X86_64
#define SHIFT 3
#include "ops_template.h"
#endif
/* sign extend */
void OPPROTO op_movsbl_T0_T0(void)
{
}
void OPPROTO op_movzbl_T0_T0(void)
{
}
void OPPROTO op_movswl_T0_T0(void)
{
}
void OPPROTO op_movzwl_T0_T0(void)
{
}
void OPPROTO op_movswl_EAX_AX(void)
{
}
#ifdef TARGET_X86_64
void OPPROTO op_movslq_T0_T0(void)
{
}
void OPPROTO op_movslq_RAX_EAX(void)
{
}
#endif
void OPPROTO op_movsbw_AX_AL(void)
{
}
void OPPROTO op_movslq_EDX_EAX(void)
{
}
void OPPROTO op_movswl_DX_AX(void)
{
}
#ifdef TARGET_X86_64
void OPPROTO op_movsqo_RDX_RAX(void)
{
}
#endif
/* string ops helpers */
void OPPROTO op_addl_ESI_T0(void)
{
}
void OPPROTO op_addw_ESI_T0(void)
{
}
void OPPROTO op_addl_EDI_T0(void)
{
}
void OPPROTO op_addw_EDI_T0(void)
{
}
void OPPROTO op_decl_ECX(void)
{
}
void OPPROTO op_decw_ECX(void)
{
}
#ifdef TARGET_X86_64
void OPPROTO op_addq_ESI_T0(void)
{
}
void OPPROTO op_addq_EDI_T0(void)
{
}
void OPPROTO op_decq_ECX(void)
{
ECX--;
}
#endif
void op_addl_A0_SS(void)
{
}
void op_subl_A0_2(void)
{
}
void op_subl_A0_4(void)
{
}
void op_addl_ESP_4(void)
{
}
void op_addl_ESP_2(void)
{
}
void op_addw_ESP_4(void)
{
}
void op_addw_ESP_2(void)
{
}
void op_addl_ESP_im(void)
{
}
void op_addw_ESP_im(void)
{
}
#ifdef TARGET_X86_64
void op_subq_A0_2(void)
{
A0 -= 2;
}
void op_subq_A0_8(void)
{
A0 -= 8;
}
void op_addq_ESP_8(void)
{
ESP += 8;
}
void op_addq_ESP_im(void)
{
}
#endif
{
helper_rdtsc();
}
{
helper_cpuid();
}
void OPPROTO op_enter_level(void)
{
}
#ifdef TARGET_X86_64
void OPPROTO op_enter64_level(void)
{
}
#endif
void OPPROTO op_sysenter(void)
{
}
void OPPROTO op_sysexit(void)
{
}
#ifdef TARGET_X86_64
void OPPROTO op_syscall(void)
{
}
{
}
#endif
{
helper_rdmsr();
}
{
helper_wrmsr();
}
/* bcd */
/* XXX: exception */
{
}
{
}
{
int icarry;
int eflags;
} else {
al &= 0x0f;
}
FORCE_RET();
}
{
int icarry;
int eflags;
} else {
al &= 0x0f;
}
FORCE_RET();
}
{
int eflags;
eflags = 0;
}
}
/* well, speed is not an issue here, so we compute the flags by hand */
FORCE_RET();
}
{
int eflags;
eflags = 0;
}
}
/* well, speed is not an issue here, so we compute the flags by hand */
FORCE_RET();
}
/* segment handling */
/* never use it with R_CS */
void OPPROTO op_movl_seg_T0(void)
{
}
/* faster VM86 version */
void OPPROTO op_movl_seg_T0_vm(void)
{
int selector;
/* env->segs[] access */
#ifdef VBOX
#endif
}
void OPPROTO op_movl_T0_seg(void)
{
}
{
helper_lsl();
}
{
helper_lar();
}
{
helper_verr();
}
{
helper_verw();
}
{
/* XXX: emulate bug or 0xff3f0000 oring as in bochs ? */
} else {
T1 = 0;
}
FORCE_RET();
}
void OPPROTO op_arpl_update(void)
{
int eflags;
}
/* T0: segment, T1:eip */
void OPPROTO op_ljmp_protected_T0_T1(void)
{
}
void OPPROTO op_lcall_real_T0_T1(void)
{
}
void OPPROTO op_lcall_protected_T0_T1(void)
{
}
void OPPROTO op_iret_real(void)
{
}
void OPPROTO op_iret_protected(void)
{
}
void OPPROTO op_lret_protected(void)
{
}
void OPPROTO op_lldt_T0(void)
{
}
{
}
/* CR registers access */
void OPPROTO op_movl_crN_T0(void)
{
}
#if !defined(CONFIG_USER_ONLY)
void OPPROTO op_movtl_T0_cr8(void)
{
}
#endif
/* DR registers access */
void OPPROTO op_movl_drN_T0(void)
{
}
void OPPROTO op_lmsw_T0(void)
{
/* only 4 lower bits of CR0 are modified. PE cannot be set to zero
if already set to one. */
}
void OPPROTO op_invlpg_A0(void)
{
}
void OPPROTO op_movl_T0_env(void)
{
}
void OPPROTO op_movl_env_T0(void)
{
}
void OPPROTO op_movl_env_T1(void)
{
}
void OPPROTO op_movtl_T0_env(void)
{
}
void OPPROTO op_movtl_env_T0(void)
{
}
void OPPROTO op_movtl_T1_env(void)
{
}
void OPPROTO op_movtl_env_T1(void)
{
}
{
}
/* flags handling */
void OPPROTO op_goto_tb0(void)
{
}
void OPPROTO op_goto_tb1(void)
{
}
void OPPROTO op_jmp_label(void)
{
GOTO_LABEL_PARAM(1);
}
void OPPROTO op_jnz_T0_label(void)
{
if (T0)
GOTO_LABEL_PARAM(1);
FORCE_RET();
}
void OPPROTO op_jz_T0_label(void)
{
if (!T0)
GOTO_LABEL_PARAM(1);
FORCE_RET();
}
/* slow set cases (compute x86 flags) */
void OPPROTO op_seto_T0_cc(void)
{
int eflags;
}
void OPPROTO op_setb_T0_cc(void)
{
}
void OPPROTO op_setz_T0_cc(void)
{
int eflags;
}
void OPPROTO op_setbe_T0_cc(void)
{
int eflags;
}
void OPPROTO op_sets_T0_cc(void)
{
int eflags;
}
void OPPROTO op_setp_T0_cc(void)
{
int eflags;
}
void OPPROTO op_setl_T0_cc(void)
{
int eflags;
}
void OPPROTO op_setle_T0_cc(void)
{
int eflags;
}
void OPPROTO op_xor_T0_1(void)
{
T0 ^= 1;
}
void OPPROTO op_set_cc_op(void)
{
}
void OPPROTO op_mov_T0_cc(void)
{
}
#ifdef VBOX
/* XXX: AMD docs say they remain unchanged. */
#endif
void OPPROTO op_movl_eflags_T0(void)
{
}
void OPPROTO op_movw_eflags_T0(void)
{
}
void OPPROTO op_movl_eflags_T0_io(void)
{
}
void OPPROTO op_movw_eflags_T0_io(void)
{
}
void OPPROTO op_movl_eflags_T0_cpl0(void)
{
}
void OPPROTO op_movw_eflags_T0_cpl0(void)
{
}
#ifndef VBOX
#if 0
/* vm86plus version */
void OPPROTO op_movw_eflags_T0_vm(void)
{
int eflags;
/* we also update some system flags as in user mode */
(eflags & FL_UPDATE_MASK16);
}
}
FORCE_RET();
}
void OPPROTO op_movl_eflags_T0_vm(void)
{
int eflags;
/* we also update some system flags as in user mode */
(eflags & FL_UPDATE_MASK32);
}
}
FORCE_RET();
}
#endif
#else /* VBOX */
/* IOPL != 3, CR4.VME=1 */
void OPPROTO op_movw_eflags_T0_vme(void)
{
unsigned int new_eflags = T0;
/* if virtual interrupt pending and (virtual) interrupts will be enabled -> #GP */
/* if TF will be set -> #GP */
|| (new_eflags & TF_MASK)) {
} else {
if (new_eflags & IF_MASK) {
} else {
}
}
FORCE_RET();
}
#endif /* VBOX */
/* XXX: compute only O flag */
void OPPROTO op_movb_eflags_T0(void)
{
int of;
}
void OPPROTO op_movl_T0_eflags(void)
{
int eflags;
}
/* vm86plus version */
#ifdef VBOX /* #if 0 */
void OPPROTO op_movl_T0_eflags_vme(void)
{
int eflags;
}
#endif /* VBOX / 0 */
{
DF = 1;
}
{
DF = -1;
}
{
int eflags;
}
{
int eflags;
}
{
int eflags;
}
{
int cf;
}
static int compute_all_eflags(void)
{
return CC_SRC;
}
static int compute_c_eflags(void)
{
}
[CC_OP_DYNAMIC] = { /* should never happen */ },
#ifdef TARGET_X86_64
#endif
};
/* floating point support. Some of the code for complicated x87
functions comes from the LGPL'ed x86 emulator found in the Willows
TWIN windows emulator. */
/* fp load FT0 */
void OPPROTO op_flds_FT0_A0(void)
{
#ifdef USE_FP_CONVERT
FT0 = FP_CONVERT.f;
#else
#endif
}
void OPPROTO op_fldl_FT0_A0(void)
{
#ifdef USE_FP_CONVERT
FT0 = FP_CONVERT.d;
#else
#endif
}
/* helpers are needed to avoid static constant reference. XXX: find a better way */
#ifdef USE_INT_TO_FLOAT_HELPERS
void helper_fild_FT0_A0(void)
{
}
void helper_fildl_FT0_A0(void)
{
}
void helper_fildll_FT0_A0(void)
{
}
void OPPROTO op_fild_FT0_A0(void)
{
}
void OPPROTO op_fildl_FT0_A0(void)
{
}
void OPPROTO op_fildll_FT0_A0(void)
{
}
#else
void OPPROTO op_fild_FT0_A0(void)
{
#ifdef USE_FP_CONVERT
#else
#endif
}
void OPPROTO op_fildl_FT0_A0(void)
{
#ifdef USE_FP_CONVERT
#else
#endif
}
void OPPROTO op_fildll_FT0_A0(void)
{
#ifdef USE_FP_CONVERT
#else
#endif
}
#endif
/* fp load ST0 */
void OPPROTO op_flds_ST0_A0(void)
{
int new_fpstt;
#ifdef USE_FP_CONVERT
#else
#endif
}
void OPPROTO op_fldl_ST0_A0(void)
{
int new_fpstt;
#ifdef USE_FP_CONVERT
#else
#endif
}
void OPPROTO op_fldt_ST0_A0(void)
{
}
/* helpers are needed to avoid static constant reference. XXX: find a better way */
#ifdef USE_INT_TO_FLOAT_HELPERS
void helper_fild_ST0_A0(void)
{
int new_fpstt;
}
void helper_fildl_ST0_A0(void)
{
int new_fpstt;
}
void helper_fildll_ST0_A0(void)
{
int new_fpstt;
}
void OPPROTO op_fild_ST0_A0(void)
{
}
void OPPROTO op_fildl_ST0_A0(void)
{
}
void OPPROTO op_fildll_ST0_A0(void)
{
}
#else
void OPPROTO op_fild_ST0_A0(void)
{
int new_fpstt;
#ifdef USE_FP_CONVERT
#else
#endif
}
void OPPROTO op_fildl_ST0_A0(void)
{
int new_fpstt;
#ifdef USE_FP_CONVERT
#else
#endif
}
void OPPROTO op_fildll_ST0_A0(void)
{
int new_fpstt;
#ifdef USE_FP_CONVERT
#else
#endif
}
#endif
/* fp store */
void OPPROTO op_fsts_ST0_A0(void)
{
#ifdef USE_FP_CONVERT
FP_CONVERT.f = (float)ST0;
#else
#endif
FORCE_RET();
}
void OPPROTO op_fstl_ST0_A0(void)
{
FORCE_RET();
}
void OPPROTO op_fstt_ST0_A0(void)
{
}
void OPPROTO op_fist_ST0_A0(void)
{
#if defined(__sparc__) && !defined(__sparc_v9__)
register CPU86_LDouble d asm("o0");
#else
#endif
int val;
d = ST0;
val = -32768;
FORCE_RET();
}
void OPPROTO op_fistl_ST0_A0(void)
{
#if defined(__sparc__) && !defined(__sparc_v9__)
register CPU86_LDouble d asm("o0");
#else
#endif
int val;
d = ST0;
FORCE_RET();
}
void OPPROTO op_fistll_ST0_A0(void)
{
#if defined(__sparc__) && !defined(__sparc_v9__)
register CPU86_LDouble d asm("o0");
#else
#endif
d = ST0;
FORCE_RET();
}
void OPPROTO op_fistt_ST0_A0(void)
{
#if defined(__sparc__) && !defined(__sparc_v9__)
register CPU86_LDouble d asm("o0");
#else
#endif
int val;
d = ST0;
val = -32768;
FORCE_RET();
}
void OPPROTO op_fisttl_ST0_A0(void)
{
#if defined(__sparc__) && !defined(__sparc_v9__)
register CPU86_LDouble d asm("o0");
#else
#endif
int val;
d = ST0;
FORCE_RET();
}
void OPPROTO op_fisttll_ST0_A0(void)
{
#if defined(__sparc__) && !defined(__sparc_v9__)
register CPU86_LDouble d asm("o0");
#else
#endif
d = ST0;
FORCE_RET();
}
void OPPROTO op_fbld_ST0_A0(void)
{
}
void OPPROTO op_fbst_ST0_A0(void)
{
}
/* FPU move */
{
fpush();
}
{
fpop();
}
void OPPROTO op_fdecstp(void)
{
}
void OPPROTO op_fincstp(void)
{
}
void OPPROTO op_ffree_STN(void)
{
}
void OPPROTO op_fmov_ST0_FT0(void)
{
}
void OPPROTO op_fmov_FT0_STN(void)
{
}
void OPPROTO op_fmov_ST0_STN(void)
{
}
void OPPROTO op_fmov_STN_ST0(void)
{
}
void OPPROTO op_fxchg_ST0_STN(void)
{
}
/* FPU operations */
void OPPROTO op_fcom_ST0_FT0(void)
{
int ret;
FORCE_RET();
}
void OPPROTO op_fucom_ST0_FT0(void)
{
int ret;
FORCE_RET();
}
void OPPROTO op_fcomi_ST0_FT0(void)
{
int eflags;
int ret;
FORCE_RET();
}
void OPPROTO op_fucomi_ST0_FT0(void)
{
int eflags;
int ret;
FORCE_RET();
}
void OPPROTO op_fcmov_ST0_STN_T0(void)
{
if (T0) {
}
FORCE_RET();
}
void OPPROTO op_fadd_ST0_FT0(void)
{
}
void OPPROTO op_fmul_ST0_FT0(void)
{
}
void OPPROTO op_fsub_ST0_FT0(void)
{
}
void OPPROTO op_fsubr_ST0_FT0(void)
{
}
void OPPROTO op_fdiv_ST0_FT0(void)
{
}
void OPPROTO op_fdivr_ST0_FT0(void)
{
}
/* fp operations between STN and ST0 */
void OPPROTO op_fadd_STN_ST0(void)
{
}
void OPPROTO op_fmul_STN_ST0(void)
{
}
void OPPROTO op_fsub_STN_ST0(void)
{
}
void OPPROTO op_fsubr_STN_ST0(void)
{
CPU86_LDouble *p;
*p = ST0 - *p;
}
void OPPROTO op_fdiv_STN_ST0(void)
{
CPU86_LDouble *p;
*p = helper_fdiv(*p, ST0);
}
void OPPROTO op_fdivr_STN_ST0(void)
{
CPU86_LDouble *p;
*p = helper_fdiv(ST0, *p);
}
/* misc FPU operations */
void OPPROTO op_fchs_ST0(void)
{
}
void OPPROTO op_fabs_ST0(void)
{
}
void OPPROTO op_fxam_ST0(void)
{
}
void OPPROTO op_fld1_ST0(void)
{
}
void OPPROTO op_fldl2t_ST0(void)
{
}
void OPPROTO op_fldl2e_ST0(void)
{
}
void OPPROTO op_fldpi_ST0(void)
{
}
void OPPROTO op_fldlg2_ST0(void)
{
}
void OPPROTO op_fldln2_ST0(void)
{
}
void OPPROTO op_fldz_ST0(void)
{
}
void OPPROTO op_fldz_FT0(void)
{
}
/* associated heplers to reduce generated code length and to simplify
relocation (FP constants are usually stored in .rodata section) */
{
helper_f2xm1();
}
{
helper_fyl2x();
}
{
helper_fptan();
}
{
}
void OPPROTO op_fxtract(void)
{
}
{
}
{
helper_fprem();
}
void OPPROTO op_fyl2xp1(void)
{
}
{
helper_fsqrt();
}
void OPPROTO op_fsincos(void)
{
}
void OPPROTO op_frndint(void)
{
}
{
}
{
helper_fsin();
}
{
helper_fcos();
}
void OPPROTO op_fnstsw_A0(void)
{
int fpus;
FORCE_RET();
}
void OPPROTO op_fnstsw_EAX(void)
{
int fpus;
}
void OPPROTO op_fnstcw_A0(void)
{
FORCE_RET();
}
void OPPROTO op_fldcw_A0(void)
{
}
{
}
{
FORCE_RET();
}
{
}
void OPPROTO op_fnstenv_A0(void)
{
}
void OPPROTO op_fldenv_A0(void)
{
}
void OPPROTO op_fnsave_A0(void)
{
}
void OPPROTO op_frstor_A0(void)
{
}
/* threading support */
{
cpu_lock();
}
{
cpu_unlock();
}
/* SSE support */
static inline void memcpy16(void *d, void *s)
{
}
{
/* XXX: badly generated code */
XMMReg *d, *s;
memcpy16(d, s);
}
{
uint64_t *d, *s;
*d = *s;
}
{
uint32_t *d, *s;
*d = *s;
}
void OPPROTO op_movq_env_0(void)
{
uint64_t *d;
*d = 0;
}
void OPPROTO op_fxsave_A0(void)
{
}
void OPPROTO op_fxrstor_A0(void)
{
}
/* XXX: optimize by storing fptt and fptags in the static cpu state */
void OPPROTO op_enter_mmx(void)
{
}
{
/* set to empty state */
}
#define SHIFT 0
#include "ops_sse.h"
#define SHIFT 1
#include "ops_sse.h"
#ifdef VBOX
/* Instantiate the structure signatures. */
# define REM_STRUCT_OP 1
#endif