diff options
author | Nick Clifton <nickc@redhat.com> | 2016-03-29 11:34:22 +0100 |
---|---|---|
committer | Nick Clifton <nickc@redhat.com> | 2016-03-29 11:34:22 +0100 |
commit | ef0d8ffc45aa32ed1e49051a344fa6c8cff583f4 (patch) | |
tree | da9a4b43a0f54d2c8da0fd3fd17eee6afd5a4b98 /sim/aarch64/decode.h | |
parent | ed3056ebdb9795446157af03d3e08fbb93c1b01d (diff) | |
download | fsf-binutils-gdb-ef0d8ffc45aa32ed1e49051a344fa6c8cff583f4.zip fsf-binutils-gdb-ef0d8ffc45aa32ed1e49051a344fa6c8cff583f4.tar.gz fsf-binutils-gdb-ef0d8ffc45aa32ed1e49051a344fa6c8cff583f4.tar.bz2 |
Tidy up AArch64 simulator code.
* cpustate.c: Remove space after asterisk in function parameters.
* decode.h (greg): Delete unused function.
(vreg, shift, extension, scaling, writeback, condcode): Likewise.
* simulator.c: Use INSTR macro in more places.
(HALT_NYI): Use sim_io_eprintf in place of fprintf.
Remove extraneous whitespace.
Diffstat (limited to 'sim/aarch64/decode.h')
-rw-r--r-- | sim/aarch64/decode.h | 44 |
1 files changed, 0 insertions, 44 deletions
diff --git a/sim/aarch64/decode.h b/sim/aarch64/decode.h index 49bfa9e..745b035 100644 --- a/sim/aarch64/decode.h +++ b/sim/aarch64/decode.h @@ -177,20 +177,6 @@ pickbits64 (uint64_t val, int hi, int lo) return pick64 (val, hi, lo) >> lo; } -/* Decode registers, immediates and constants of various types. */ - -static inline GReg -greg (uint32_t val, int lo) -{ - return (GReg) pickbits32 (val, lo + 4, lo); -} - -static inline VReg -vreg (uint32_t val, int lo) -{ - return (VReg) pickbits32 (val, lo + 4, lo); -} - static inline uint32_t uimm (uint32_t val, int hi, int lo) { @@ -223,36 +209,6 @@ simm64 (uint64_t val, int hi, int lo) return x.n >> (63 - hi + lo); } -static inline Shift -shift (uint32_t val, int lo) -{ - return (Shift) pickbits32 (val, lo + 1, lo); -} - -static inline Extension -extension (uint32_t val, int lo) -{ - return (Extension) pickbits32 (val, lo + 2, lo); -} - -static inline Scaling -scaling (uint32_t val, int lo) -{ - return (Scaling) pickbits32 (val, lo, lo); -} - -static inline WriteBack -writeback (uint32_t val, int lo) -{ - return (WriteBack) pickbits32 (val, lo, lo); -} - -static inline CondCode -condcode (uint32_t val, int lo) -{ - return (CondCode) pickbits32 (val, lo + 3, lo); -} - /* Operation decode. Bits [28,24] are the primary dispatch vector. */ |