Skip to contentSkip to conversation

hw/intc/armv7m_nvic: Fix typo in comment

PATCH In review Evgeny Ermakov 2 participants 3 messages Feb 24, 2022 – Feb 25, 2022

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 hw/intc/armv7m_nvic: Fix typo in comment

---
 hw/intc/armv7m_nvic.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
hw/intc/armv7m_nvic.c +1 -1
index 13df002ce4..a08a0fdc50 100644
@@ -97,7 +97,7 @@ static int nvic_pending_prio(NVICState *s)
  * this is only different in the obscure corner case where guest
  * code has manually deactivated an exception and is about
  * to fail an exception-return integrity check. The definition
- * above is the one from the v8M ARM ARM and is also in line
+ * above is the one from the v8M ARM and is also in line
  * with the behaviour documented for the Cortex-M3.
  */
 static bool nvic_rettobase(NVICState *s)
Signature · 1 line
2.35.1
#1 lore raw
Quoted 11 lines · Evgeny Ermakov
---
 hw/intc/armv7m_nvic.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
hw/intc/armv7m_nvic.c +0 -0
index 13df002ce4..a08a0fdc50 100644

hw/intc/armv7m_nvic.c static int nvic_pending_prio(NVICState *s) · line 102

Quoted 7 lines
hw/intc/armv7m_nvic.c +1 -1
@@ -97,7 +97,7 @@ static int nvic_pending_prio(NVICState *s)
  * this is only different in the obscure corner case where guest
  * code has manually deactivated an exception and is about
  * to fail an exception-return integrity check. The definition
- * above is the one from the v8M ARM ARM and is also in line
+ * above is the one from the v8M ARM and is also in line
  * with the behaviour documented for the Cortex-M3.
  */

This is not a typo. The "ARM ARM" (or "Arm ARM" these days if you want to follow the official corporate name capitalization) is the standard abbreviated way to refer to the
Arm Architecture Reference Manual. "git grep -i 'arm arm'" finds over 50 uses of it in various comments.

thanks
-- PMM

#2 lore raw

Ah, indeed.

Sorry for having bothered you.

Quoted 30 lines · On Thu, 24 Feb 2022, 23:46 Peter Maydell, <[email protected]> wrote:
Quoted 11 lines · Evgeny Ermakov
---
 hw/intc/armv7m_nvic.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
hw/intc/armv7m_nvic.c +0 -0
index 13df002ce4..a08a0fdc50 100644

hw/intc/armv7m_nvic.c static int nvic_pending_prio(NVICState *s) · line 102

Quoted 7 lines
hw/intc/armv7m_nvic.c +1 -1
@@ -97,7 +97,7 @@ static int nvic_pending_prio(NVICState *s)
  * this is only different in the obscure corner case where guest
  * code has manually deactivated an exception and is about
  * to fail an exception-return integrity check. The definition
- * above is the one from the v8M ARM ARM and is also in line
+ * above is the one from the v8M ARM and is also in line
  * with the behaviour documented for the Cortex-M3.
  */

This is not a typo. The "ARM ARM" (or "Arm ARM" these days if you want to follow the official corporate name capitalization) is the standard abbreviated way to refer to the
Arm Architecture Reference Manual. "git grep -i 'arm arm'" finds over 50 uses of it in various comments.

thanks
-- PMM