-
Notifications
You must be signed in to change notification settings - Fork 108
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
aarch64 asmrefine: copy ArchSetup from RISCV64
Signed-off-by: Rafal Kolanski <[email protected]>
- Loading branch information
Showing
1 changed file
with
33 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
(* | ||
* Copyright 2020, Data61, CSIRO (ABN 41 687 119 230) | ||
* | ||
* SPDX-License-Identifier: BSD-2-Clause | ||
*) | ||
|
||
theory ArchSetup | ||
imports | ||
"CLib.CTranslationNICTA" | ||
begin | ||
|
||
abbreviation (input) | ||
"(arch_load_machine_word | ||
(load_word32 :: word32 mem_read) | ||
(load_word64 :: word64 mem_read) | ||
:: machine_word mem_read) | ||
\<equiv> load_word64" | ||
|
||
abbreviation (input) | ||
"(arch_store_machine_word | ||
(store_word32 :: word32 mem_upd) | ||
(store_word64 :: word64 mem_upd) | ||
:: machine_word mem_upd) | ||
\<equiv> store_word64" | ||
|
||
abbreviation (input) | ||
"(arch_machine_word_constructor | ||
(from_word32 :: word32 \<Rightarrow> 'a) | ||
(from_word64 :: word64 \<Rightarrow> 'a) | ||
:: machine_word \<Rightarrow> 'a) | ||
\<equiv> from_word64" | ||
|
||
end |