mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-09 10:34:58 -06:00
target-arm: Convert debug registers to cp_reginfo
Convert the cp14 debug registers (DBGDIDR, DBGDRAR, DBGDSAR) to the cp_reginfo scheme. Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
This commit is contained in:
parent
2ceb98c007
commit
e9aa6c2148
2 changed files with 25 additions and 28 deletions
|
@ -6364,34 +6364,6 @@ static int disas_cp14_read(CPUARMState * env, DisasContext *s, uint32_t insn)
|
|||
int rt = (insn >> 12) & 0xf;
|
||||
TCGv tmp;
|
||||
|
||||
/* Minimal set of debug registers, since we don't support debug */
|
||||
if (op1 == 0 && crn == 0 && op2 == 0) {
|
||||
switch (crm) {
|
||||
case 0:
|
||||
/* DBGDIDR: just RAZ. In particular this means the
|
||||
* "debug architecture version" bits will read as
|
||||
* a reserved value, which should cause Linux to
|
||||
* not try to use the debug hardware.
|
||||
*/
|
||||
tmp = tcg_const_i32(0);
|
||||
store_reg(s, rt, tmp);
|
||||
return 0;
|
||||
case 1:
|
||||
case 2:
|
||||
/* DBGDRAR and DBGDSAR: v7 only. Always RAZ since we
|
||||
* don't implement memory mapped debug components
|
||||
*/
|
||||
if (ENABLE_ARCH_7) {
|
||||
tmp = tcg_const_i32(0);
|
||||
store_reg(s, rt, tmp);
|
||||
return 0;
|
||||
}
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
if (arm_feature(env, ARM_FEATURE_THUMB2EE)) {
|
||||
if (op1 == 6 && crn == 0 && crm == 0 && op2 == 0) {
|
||||
/* TEECR */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue