VirtualBox

root/trunk/src/recompiler/translate-op.c

Revision 11982, 3.2 kB (checked in by vboxsync, 4 months ago)

All: license header changes for 2.0 (OSE headers, add Sun GPL/LGPL disclaimer)

Line 
1 /*
2  *  Host code generation
3  *
4  *  Copyright (c) 2003 Fabrice Bellard
5  *
6  * This library is free software; you can redistribute it and/or
7  * modify it under the terms of the GNU Lesser General Public
8  * License as published by the Free Software Foundation; either
9  * version 2 of the License, or (at your option) any later version.
10  *
11  * This library is distributed in the hope that it will be useful,
12  * but WITHOUT ANY WARRANTY; without even the implied warranty of
13  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
14  * Lesser General Public License for more details.
15  *
16  * You should have received a copy of the GNU Lesser General Public
17  * License along with this library; if not, write to the Free Software
18  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
19  */
20
21 /*
22  * Sun LGPL Disclaimer: For the avoidance of doubt, except that if any license choice
23  * other than GPL or LGPL is available it will apply instead, Sun elects to use only
24  * the Lesser General Public License version 2.1 (LGPLv2) at this time for any software where
25  * a choice of LGPL license versions is made available with the language indicating
26  * that LGPLv2 or any later version may be used, or where a choice of which version
27  * of the LGPL is applied is otherwise unspecified.
28  */
29 #include <stdarg.h>
30 #include <stdlib.h>
31 #include <stdio.h>
32 #include <string.h>
33 #include <inttypes.h>
34
35 #include "config.h"         
36
37 #if defined(VBOX)
38 void     remR3PhysRead(RTGCPHYS SrcGCPhys, void *pvDst, unsigned cb);
39 uint8_t  remR3PhysReadU8(RTGCPHYS SrcGCPhys);
40 int8_t   remR3PhysReadS8(RTGCPHYS SrcGCPhys);
41 uint16_t remR3PhysReadU16(RTGCPHYS SrcGCPhys);
42 int16_t  remR3PhysReadS16(RTGCPHYS SrcGCPhys);
43 uint32_t remR3PhysReadU32(RTGCPHYS SrcGCPhys);
44 int32_t  remR3PhysReadS32(RTGCPHYS SrcGCPhys);
45 uint64_t remR3PhysReadU64(RTGCPHYS SrcGCPhys);
46 int64_t  remR3PhysReadS64(RTGCPHYS SrcGCPhys);
47 void     remR3PhysWrite(RTGCPHYS DstGCPhys, const void *pvSrc, unsigned cb);
48 void     remR3PhysWriteU8(RTGCPHYS DstGCPhys, uint8_t val);
49 void     remR3PhysWriteU16(RTGCPHYS DstGCPhys, uint16_t val);
50 void     remR3PhysWriteU32(RTGCPHYS DstGCPhys, uint32_t val);
51 void     remR3PhysWriteU64(RTGCPHYS DstGCPhys, uint64_t val);
52
53 # ifndef REM_PHYS_ADDR_IN_TLB
54 void     remR3PhysReadHCPtr(uint8_t *pbSrcPhys, void *pvDst, unsigned cb);
55 uint8_t  remR3PhysReadHCPtrU8(uint8_t *pbSrcPhys);
56 int8_t   remR3PhysReadHCPtrS8(uint8_t *pbSrcPhys);
57 uint16_t remR3PhysReadHCPtrU16(uint8_t *pbSrcPhys);
58 int16_t  remR3PhysReadHCPtrS16(uint8_t *pbSrcPhys);
59 uint32_t remR3PhysReadHCPtrU32(uint8_t *pbSrcPhys);
60 int32_t  remR3PhysReadHCPtrS32(uint8_t *pbSrcPhys);
61 uint64_t remR3PhysReadHCPtrU64(uint8_t *pbSrcPhys);
62 int64_t  remR3PhysReadHCPtrS64(uint8_t *pbSrcPhys);
63 void     remR3PhysWriteHCPtr(uint8_t *pbDstPhys, const void *pvSrc, unsigned cb);
64 void     remR3PhysWriteHCPtrU8(uint8_t *pbDstPhys, uint8_t val);
65 void     remR3PhysWriteHCPtrU16(uint8_t *pbDstPhys, uint16_t val);
66 void     remR3PhysWriteHCPtrU32(uint8_t *pbDstPhys, uint32_t val);
67 void     remR3PhysWriteHCPtrU64(uint8_t *pbDstPhys, uint64_t val);
68 # endif
69 #endif /* VBOX */
70
71 enum {
72 #define DEF(s, n, copy_size) INDEX_op_ ## s,
73 #include "opc.h"
74 #undef DEF
75     NB_OPS,
76 };
77
78 #include "dyngen.h"
79 #include "op.h"
80
Note: See TracBrowser for help on using the browser.

© 2008 Sun Microsystems, Inc.
ContactPrivacy policy