[PATCH] target/ppc: Remove unused MMU definitions

Philippe Mathieu-Daudé posted 1 patch 3 years, 3 months ago
Test checkpatch passed
Patches applied successfully (tree, apply log)
git fetch https://github.com/patchew-project/qemu tags/patchew/20210127232401.3525126-1-f4bug@amsat.org
target/ppc/cpu.h | 3 ---
1 file changed, 3 deletions(-)
[PATCH] target/ppc: Remove unused MMU definitions
Posted by Philippe Mathieu-Daudé 3 years, 3 months ago
Remove these confusing and unused definitions.

Signed-off-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
---
 target/ppc/cpu.h | 3 ---
 1 file changed, 3 deletions(-)

diff --git a/target/ppc/cpu.h b/target/ppc/cpu.h
index 2609e4082ed..cb002102888 100644
--- a/target/ppc/cpu.h
+++ b/target/ppc/cpu.h
@@ -2205,9 +2205,6 @@ enum {
  * may be needed for precise access rights control and precise exceptions.
  */
 enum {
-    /* 1 bit to define user level / supervisor access */
-    ACCESS_USER  = 0x00,
-    ACCESS_SUPER = 0x01,
     /* Type of instruction that generated the access */
     ACCESS_CODE  = 0x10, /* Code fetch access                */
     ACCESS_INT   = 0x20, /* Integer load/store access        */
-- 
2.26.2


Re: [PATCH] target/ppc: Remove unused MMU definitions
Posted by David Gibson 3 years, 3 months ago
On Thu, Jan 28, 2021 at 12:24:01AM +0100, Philippe Mathieu-Daudé wrote:
> Remove these confusing and unused definitions.
> 
> Signed-off-by: Philippe Mathieu-Daudé <f4bug@amsat.org>

Applied to ppc-for-6.0.

> ---
>  target/ppc/cpu.h | 3 ---
>  1 file changed, 3 deletions(-)
> 
> diff --git a/target/ppc/cpu.h b/target/ppc/cpu.h
> index 2609e4082ed..cb002102888 100644
> --- a/target/ppc/cpu.h
> +++ b/target/ppc/cpu.h
> @@ -2205,9 +2205,6 @@ enum {
>   * may be needed for precise access rights control and precise exceptions.
>   */
>  enum {
> -    /* 1 bit to define user level / supervisor access */
> -    ACCESS_USER  = 0x00,
> -    ACCESS_SUPER = 0x01,
>      /* Type of instruction that generated the access */
>      ACCESS_CODE  = 0x10, /* Code fetch access                */
>      ACCESS_INT   = 0x20, /* Integer load/store access        */

-- 
David Gibson			| I'll have my music baroque, and my code
david AT gibson.dropbear.id.au	| minimalist, thank you.  NOT _the_ _other_
				| _way_ _around_!
http://www.ozlabs.org/~dgibson