/* * Host code generation * * Copyright (c) 2003 Fabrice Bellard * * 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 */ /* * Sun LGPL Disclaimer: For the avoidance of doubt, except that if any license choice * other than GPL or LGPL is available it will apply instead, Sun elects to use only * the Lesser General Public License version 2.1 (LGPLv2) at this time for any software where * a choice of LGPL license versions is made available with the language indicating * that LGPLv2 or any later version may be used, or where a choice of which version * of the LGPL is applied is otherwise unspecified. */ #include #include #include #include #include #include "config.h" #if defined(VBOX) void remR3PhysRead(RTGCPHYS SrcGCPhys, void *pvDst, unsigned cb); uint8_t remR3PhysReadU8(RTGCPHYS SrcGCPhys); int8_t remR3PhysReadS8(RTGCPHYS SrcGCPhys); uint16_t remR3PhysReadU16(RTGCPHYS SrcGCPhys); int16_t remR3PhysReadS16(RTGCPHYS SrcGCPhys); uint32_t remR3PhysReadU32(RTGCPHYS SrcGCPhys); int32_t remR3PhysReadS32(RTGCPHYS SrcGCPhys); uint64_t remR3PhysReadU64(RTGCPHYS SrcGCPhys); int64_t remR3PhysReadS64(RTGCPHYS SrcGCPhys); void remR3PhysWrite(RTGCPHYS DstGCPhys, const void *pvSrc, unsigned cb); void remR3PhysWriteU8(RTGCPHYS DstGCPhys, uint8_t val); void remR3PhysWriteU16(RTGCPHYS DstGCPhys, uint16_t val); void remR3PhysWriteU32(RTGCPHYS DstGCPhys, uint32_t val); void remR3PhysWriteU64(RTGCPHYS DstGCPhys, uint64_t val); # ifndef REM_PHYS_ADDR_IN_TLB void remR3PhysReadHCPtr(uint8_t *pbSrcPhys, void *pvDst, unsigned cb); uint8_t remR3PhysReadHCPtrU8(uint8_t *pbSrcPhys); int8_t remR3PhysReadHCPtrS8(uint8_t *pbSrcPhys); uint16_t remR3PhysReadHCPtrU16(uint8_t *pbSrcPhys); int16_t remR3PhysReadHCPtrS16(uint8_t *pbSrcPhys); uint32_t remR3PhysReadHCPtrU32(uint8_t *pbSrcPhys); int32_t remR3PhysReadHCPtrS32(uint8_t *pbSrcPhys); uint64_t remR3PhysReadHCPtrU64(uint8_t *pbSrcPhys); int64_t remR3PhysReadHCPtrS64(uint8_t *pbSrcPhys); void remR3PhysWriteHCPtr(uint8_t *pbDstPhys, const void *pvSrc, unsigned cb); void remR3PhysWriteHCPtrU8(uint8_t *pbDstPhys, uint8_t val); void remR3PhysWriteHCPtrU16(uint8_t *pbDstPhys, uint16_t val); void remR3PhysWriteHCPtrU32(uint8_t *pbDstPhys, uint32_t val); void remR3PhysWriteHCPtrU64(uint8_t *pbDstPhys, uint64_t val); # endif #endif /* VBOX */ enum { #define DEF(s, n, copy_size) INDEX_op_ ## s, #include "opc.h" #undef DEF NB_OPS, }; #include "dyngen.h" #include "op.h"