diff mbox series

[06/15] target/arm: Remove incorrect comment about MPU_CTRL

Message ID 1501692241-23310-7-git-send-email-peter.maydell@linaro.org
State Superseded
Headers show
Series v7M: cleanups and bugfixes prior to v8M | expand

Commit Message

Peter Maydell Aug. 2, 2017, 4:43 p.m. UTC
Remove the comment that claims that some MPU_CTRL bits are stored
in sctlr_el[1]. This has never been true since MPU_CTRL was added
in commit 29c483a50607 -- the comment is a leftover from
Michael Davidsaver's original implementation, which I modified
not to use sctlr_el[1]; I forgot to delete the comment then.

Signed-off-by: Peter Maydell <peter.maydell@linaro.org>

---
 target/arm/cpu.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

-- 
2.7.4

Comments

Edgar E. Iglesias Aug. 3, 2017, 3:24 p.m. UTC | #1
On Wed, Aug 02, 2017 at 05:43:52PM +0100, Peter Maydell wrote:
> Remove the comment that claims that some MPU_CTRL bits are stored

> in sctlr_el[1]. This has never been true since MPU_CTRL was added

> in commit 29c483a50607 -- the comment is a leftover from

> Michael Davidsaver's original implementation, which I modified

> not to use sctlr_el[1]; I forgot to delete the comment then.

> 

> Signed-off-by: Peter Maydell <peter.maydell@linaro.org>


Reviewed-by: Edgar E. Iglesias <edgar.iglesias@xilinx.com>



> ---

>  target/arm/cpu.h | 2 +-

>  1 file changed, 1 insertion(+), 1 deletion(-)

> 

> diff --git a/target/arm/cpu.h b/target/arm/cpu.h

> index b39d64a..b64474c 100644

> --- a/target/arm/cpu.h

> +++ b/target/arm/cpu.h

> @@ -416,7 +416,7 @@ typedef struct CPUARMState {

>          uint32_t dfsr; /* Debug Fault Status Register */

>          uint32_t mmfar; /* MemManage Fault Address */

>          uint32_t bfar; /* BusFault Address */

> -        unsigned mpu_ctrl; /* MPU_CTRL (some bits kept in sctlr_el[1]) */

> +        unsigned mpu_ctrl; /* MPU_CTRL */

>          int exception;

>      } v7m;

>  

> -- 

> 2.7.4

> 

>
Richard Henderson Aug. 3, 2017, 9:35 p.m. UTC | #2
On 08/02/2017 09:43 AM, Peter Maydell wrote:
> Remove the comment that claims that some MPU_CTRL bits are stored

> in sctlr_el[1]. This has never been true since MPU_CTRL was added

> in commit 29c483a50607 -- the comment is a leftover from

> Michael Davidsaver's original implementation, which I modified

> not to use sctlr_el[1]; I forgot to delete the comment then.

> 

> Signed-off-by: Peter Maydell <peter.maydell@linaro.org>

> ---

>  target/arm/cpu.h | 2 +-

>  1 file changed, 1 insertion(+), 1 deletion(-)


Reviewed-by: Richard Henderson <richard.henderson@linaro.org>



r~
diff mbox series

Patch

diff --git a/target/arm/cpu.h b/target/arm/cpu.h
index b39d64a..b64474c 100644
--- a/target/arm/cpu.h
+++ b/target/arm/cpu.h
@@ -416,7 +416,7 @@  typedef struct CPUARMState {
         uint32_t dfsr; /* Debug Fault Status Register */
         uint32_t mmfar; /* MemManage Fault Address */
         uint32_t bfar; /* BusFault Address */
-        unsigned mpu_ctrl; /* MPU_CTRL (some bits kept in sctlr_el[1]) */
+        unsigned mpu_ctrl; /* MPU_CTRL */
         int exception;
     } v7m;