VirtualBox

source: vbox/trunk/src/VBox/VMM/VMMAll/IEMAllAImpl-arm64.S@ 102977

最後變更 在這個檔案從102977是 102977,由 vboxsync 提交於 14 月 前

VMM/IEM: Implemented generic fallback for misaligned x86 locking that is not compatible with the host. Using the existing split-lock solution with VINF_EM_EMULATE_SPLIT_LOCK from bugref:10052. We keep ignoring the 'lock' prefix in the recompiler for single CPU VMs (now also on amd64 hosts). bugref:10547

  • 屬性 svn:eol-style 設為 native
  • 屬性 svn:keywords 設為 Author Date Id Revision
檔案大小: 2.0 KB
 
1/* $Id: IEMAllAImpl-arm64.S 102977 2024-01-19 23:11:30Z vboxsync $ */
2/** @file
3 * IEM - Instruction Implementation in Assembly, ARM64 variant.
4 */
5
6/*
7 * Copyright (C) 2023 Oracle and/or its affiliates.
8 *
9 * This file is part of VirtualBox base platform packages, as
10 * available from https://www.alldomusa.eu.org.
11 *
12 * This program is free software; you can redistribute it and/or
13 * modify it under the terms of the GNU General Public License
14 * as published by the Free Software Foundation, in version 3 of the
15 * License.
16 *
17 * This program is distributed in the hope that it will be useful, but
18 * WITHOUT ANY WARRANTY; without even the implied warranty of
19 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
20 * General Public License for more details.
21 *
22 * You should have received a copy of the GNU General Public License
23 * along with this program; if not, see <https://www.gnu.org/licenses>.
24 *
25 * SPDX-License-Identifier: GPL-3.0-only
26 */
27
28
29#include <iprt/asmdefs-arm.h>
30
31
32BEGINCODE
33 .p2align 2
34 .private_extern NAME(iemAImpl_placeholder)
35 .globl NAME(iemAImpl_placeholder)
36NAME(iemAImpl_placeholder):
37 brk #1
38 ret
39
40/* Some sketches.
41
42// IEM_DECL_IMPL_DEF(void, iemAImpl_xchg_u8_locked, (uint8_t *pu8Mem, uint8_t *pu8Reg));
43 .p2align 2
44 .private_extern NAME(iemAImpl_xchg_u8_locked)
45 .globl NAME(iemAImpl_xchg_u8_locked)
46NAME(iemAImpl_xchg_u8_locked):
47 ldrb w2, [x1]
48 swpalb w2, w2, [x0]
49 strb w2, [x1]
50 ret
51
52// IEM_DECL_IMPL_DEF(void, iemAImpl_xchg_u16_locked,(uint16_t *pu16Mem, uint16_t *pu16Reg));
53 .p2align 2
54 .private_extern NAME(iemAImpl_xchg_u16_locked)
55 .globl NAME(iemAImpl_xchg_u16_locked)
56NAME(iemAImpl_xchg_u16_locked):
57 ldrh w2, [x1]
58 swpalh w2, w2, [x0]
59 strh w2, [x1]
60 ret
61
62// IEM_DECL_IMPL_DEF(void, iemAImpl_xchg_u32_locked,(uint32_t *pu32Mem, uint32_t *pu32Reg));
63// IEM_DECL_IMPL_DEF(void, iemAImpl_xchg_u64_locked,(uint64_t *pu64Mem, uint64_t *pu64Reg));
64
65*/
注意: 瀏覽 TracBrowser 來幫助您使用儲存庫瀏覽器

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