VirtualBox

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

Last change on this file since 5436 was 2422, checked in by vboxsync, 18 years ago

Removed the old recompiler code.

File size: 2.7 KB
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#include <stdarg.h>
21#include <stdlib.h>
22#include <stdio.h>
23#include <string.h>
24#include <inttypes.h>
25
26#include "config.h"
27
28#if defined(VBOX)
29void remR3PhysRead(RTGCPHYS SrcGCPhys, void *pvDst, unsigned cb);
30uint8_t remR3PhysReadU8(RTGCPHYS SrcGCPhys);
31int8_t remR3PhysReadS8(RTGCPHYS SrcGCPhys);
32uint16_t remR3PhysReadU16(RTGCPHYS SrcGCPhys);
33int16_t remR3PhysReadS16(RTGCPHYS SrcGCPhys);
34uint32_t remR3PhysReadU32(RTGCPHYS SrcGCPhys);
35int32_t remR3PhysReadS32(RTGCPHYS SrcGCPhys);
36uint64_t remR3PhysReadU64(RTGCPHYS SrcGCPhys);
37int64_t remR3PhysReadS64(RTGCPHYS SrcGCPhys);
38void remR3PhysWrite(RTGCPHYS DstGCPhys, const void *pvSrc, unsigned cb);
39void remR3PhysWriteU8(RTGCPHYS DstGCPhys, uint8_t val);
40void remR3PhysWriteU16(RTGCPHYS DstGCPhys, uint16_t val);
41void remR3PhysWriteU32(RTGCPHYS DstGCPhys, uint32_t val);
42void remR3PhysWriteU64(RTGCPHYS DstGCPhys, uint64_t val);
43
44# ifndef REM_PHYS_ADDR_IN_TLB
45void remR3PhysReadHCPtr(uint8_t *pbSrcPhys, void *pvDst, unsigned cb);
46uint8_t remR3PhysReadHCPtrU8(uint8_t *pbSrcPhys);
47int8_t remR3PhysReadHCPtrS8(uint8_t *pbSrcPhys);
48uint16_t remR3PhysReadHCPtrU16(uint8_t *pbSrcPhys);
49int16_t remR3PhysReadHCPtrS16(uint8_t *pbSrcPhys);
50uint32_t remR3PhysReadHCPtrU32(uint8_t *pbSrcPhys);
51int32_t remR3PhysReadHCPtrS32(uint8_t *pbSrcPhys);
52uint64_t remR3PhysReadHCPtrU64(uint8_t *pbSrcPhys);
53int64_t remR3PhysReadHCPtrS64(uint8_t *pbSrcPhys);
54void remR3PhysWriteHCPtr(uint8_t *pbDstPhys, const void *pvSrc, unsigned cb);
55void remR3PhysWriteHCPtrU8(uint8_t *pbDstPhys, uint8_t val);
56void remR3PhysWriteHCPtrU16(uint8_t *pbDstPhys, uint16_t val);
57void remR3PhysWriteHCPtrU32(uint8_t *pbDstPhys, uint32_t val);
58void remR3PhysWriteHCPtrU64(uint8_t *pbDstPhys, uint64_t val);
59# endif
60#endif /* VBOX */
61
62enum {
63#define DEF(s, n, copy_size) INDEX_op_ ## s,
64#include "opc.h"
65#undef DEF
66 NB_OPS,
67};
68
69#include "dyngen.h"
70#include "op.h"
71
Note: See TracBrowser for help on using the repository browser.

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