VirtualBox

source: vbox/trunk/src/recompiler/translate-op.c@ 13782

最後變更 在這個檔案從13782是 11982,由 vboxsync 提交於 16 年 前

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

檔案大小: 3.2 KB
 
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)
38void remR3PhysRead(RTGCPHYS SrcGCPhys, void *pvDst, unsigned cb);
39uint8_t remR3PhysReadU8(RTGCPHYS SrcGCPhys);
40int8_t remR3PhysReadS8(RTGCPHYS SrcGCPhys);
41uint16_t remR3PhysReadU16(RTGCPHYS SrcGCPhys);
42int16_t remR3PhysReadS16(RTGCPHYS SrcGCPhys);
43uint32_t remR3PhysReadU32(RTGCPHYS SrcGCPhys);
44int32_t remR3PhysReadS32(RTGCPHYS SrcGCPhys);
45uint64_t remR3PhysReadU64(RTGCPHYS SrcGCPhys);
46int64_t remR3PhysReadS64(RTGCPHYS SrcGCPhys);
47void remR3PhysWrite(RTGCPHYS DstGCPhys, const void *pvSrc, unsigned cb);
48void remR3PhysWriteU8(RTGCPHYS DstGCPhys, uint8_t val);
49void remR3PhysWriteU16(RTGCPHYS DstGCPhys, uint16_t val);
50void remR3PhysWriteU32(RTGCPHYS DstGCPhys, uint32_t val);
51void remR3PhysWriteU64(RTGCPHYS DstGCPhys, uint64_t val);
52
53# ifndef REM_PHYS_ADDR_IN_TLB
54void remR3PhysReadHCPtr(uint8_t *pbSrcPhys, void *pvDst, unsigned cb);
55uint8_t remR3PhysReadHCPtrU8(uint8_t *pbSrcPhys);
56int8_t remR3PhysReadHCPtrS8(uint8_t *pbSrcPhys);
57uint16_t remR3PhysReadHCPtrU16(uint8_t *pbSrcPhys);
58int16_t remR3PhysReadHCPtrS16(uint8_t *pbSrcPhys);
59uint32_t remR3PhysReadHCPtrU32(uint8_t *pbSrcPhys);
60int32_t remR3PhysReadHCPtrS32(uint8_t *pbSrcPhys);
61uint64_t remR3PhysReadHCPtrU64(uint8_t *pbSrcPhys);
62int64_t remR3PhysReadHCPtrS64(uint8_t *pbSrcPhys);
63void remR3PhysWriteHCPtr(uint8_t *pbDstPhys, const void *pvSrc, unsigned cb);
64void remR3PhysWriteHCPtrU8(uint8_t *pbDstPhys, uint8_t val);
65void remR3PhysWriteHCPtrU16(uint8_t *pbDstPhys, uint16_t val);
66void remR3PhysWriteHCPtrU32(uint8_t *pbDstPhys, uint32_t val);
67void remR3PhysWriteHCPtrU64(uint8_t *pbDstPhys, uint64_t val);
68# endif
69#endif /* VBOX */
70
71enum {
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
注意: 瀏覽 TracBrowser 來幫助您使用儲存庫瀏覽器

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette