-
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Handle read/write of alias P3:0 register
- Loading branch information
Showing
3 changed files
with
51 additions
and
6 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
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 |
---|---|---|
@@ -1,6 +1,17 @@ | ||
// SPDX-FileCopyrightText: 2022 Rot127 <[email protected]> | ||
// SPDX-License-Identifier: LGPL-3.0-only | ||
|
||
/// Immutable bits of CTR registers as in QEMU. | ||
static const ut64 hex_ctr_immut_masks[32] = { | ||
[HEX_REG_CTR_REGS_C8] = 0xc13000c0, // USR | ||
[HEX_REG_CTR_REGS_C9] = HEX_IMMUTABLE_REG, // PC | ||
[HEX_REG_CTR_REGS_C11] = 0x3f, // GP | ||
[HEX_REG_CTR_REGS_C14] = HEX_IMMUTABLE_REG, // UPCYCLELO | ||
[HEX_REG_CTR_REGS_C15] = HEX_IMMUTABLE_REG, // UPCYCLEHI | ||
[HEX_REG_CTR_REGS_C30] = HEX_IMMUTABLE_REG, // UTIMERLO | ||
[HEX_REG_CTR_REGS_C31] = HEX_IMMUTABLE_REG, // UTIMERHI | ||
}; | ||
|
||
RZ_IPI bool hex_shuffle_insns(RZ_INOUT HexPkt *p); | ||
RZ_IPI RzILOpEffect *hex_get_il_op(const ut32 addr, const bool get_pkt_op); | ||
RZ_IPI RZ_OWN RzILOpPure *hex_get_rf_property_val(const HexRegFieldProperty property, const HexRegField field); | ||
|
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