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 |
|
---|
32 | BEGINCODE
|
---|
33 | .p2align 2
|
---|
34 | .private_extern NAME(iemAImpl_placeholder)
|
---|
35 | .globl NAME(iemAImpl_placeholder)
|
---|
36 | NAME(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)
|
---|
46 | NAME(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)
|
---|
56 | NAME(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 | */
|
---|