From 6b0d1a937b2e1ea4c7dae1233f4f3443837bbd80 Mon Sep 17 00:00:00 2001 From: eZio Pan Date: Thu, 22 Feb 2024 00:33:42 +0800 Subject: [PATCH] remove unneeded enum --- data/registers/icache_v1_0crr.yaml | 21 --------------------- data/registers/icache_v1_3crr.yaml | 21 --------------------- data/registers/icache_v1_4crr.yaml | 21 --------------------- transforms/ICACHE.yaml | 3 +++ 4 files changed, 3 insertions(+), 63 deletions(-) diff --git a/data/registers/icache_v1_0crr.yaml b/data/registers/icache_v1_0crr.yaml index 589e529..d97ac61 100644 --- a/data/registers/icache_v1_0crr.yaml +++ b/data/registers/icache_v1_0crr.yaml @@ -39,7 +39,6 @@ fieldset/CR: description: Set by software and cleared by hardware when the BUSYF flag is set (during cache maintenance operation). Writing 0 has no effect. bit_offset: 1 bit_size: 1 - enum: CACHEINV - name: WAYSEL description: This bit allows user to choose ICACHE set-associativity. It can be written by software only when cache is disabled (EN = 0). bit_offset: 2 @@ -57,12 +56,10 @@ fieldset/CR: description: Hit monitor reset. bit_offset: 18 bit_size: 1 - enum: HITMRST - name: MISSMRST description: Miss monitor reset. bit_offset: 19 bit_size: 1 - enum: MISSMRST fieldset/FCR: description: ICACHE flag clear register. fields: @@ -107,24 +104,6 @@ fieldset/SR: description: an error occurred during the operation. bit_offset: 2 bit_size: 1 -enum/CACHEINV: - bit_size: 1 - variants: - - name: Invalidate - description: Invalidate entire cache - value: 1 -enum/HITMRST: - bit_size: 1 - variants: - - name: Reset - description: Reset cache hit monitor - value: 1 -enum/MISSMRST: - bit_size: 1 - variants: - - name: Reset - description: Reset cache miss monitor - value: 1 enum/WAYSEL: bit_size: 1 variants: diff --git a/data/registers/icache_v1_3crr.yaml b/data/registers/icache_v1_3crr.yaml index 35e9081..940b6ac 100644 --- a/data/registers/icache_v1_3crr.yaml +++ b/data/registers/icache_v1_3crr.yaml @@ -46,7 +46,6 @@ fieldset/CR: description: Set by software and cleared by hardware when the BUSYF flag is set (during cache maintenance operation). Writing 0 has no effect. bit_offset: 1 bit_size: 1 - enum: CACHEINV - name: WAYSEL description: This bit allows user to choose ICACHE set-associativity. It can be written by software only when cache is disabled (EN = 0). bit_offset: 2 @@ -64,12 +63,10 @@ fieldset/CR: description: Hit monitor reset. bit_offset: 18 bit_size: 1 - enum: HITMRST - name: MISSMRST description: Miss monitor reset. bit_offset: 19 bit_size: 1 - enum: MISSMRST fieldset/CRR: description: ICACHE region configuration register. fields: @@ -144,12 +141,6 @@ fieldset/SR: description: an error occurred during the operation. bit_offset: 2 bit_size: 1 -enum/CACHEINV: - bit_size: 1 - variants: - - name: Invalidate - description: Invalidate entire cache - value: 1 enum/HBURST: bit_size: 1 variants: @@ -157,18 +148,6 @@ enum/HBURST: value: 0 - name: Increment value: 1 -enum/HITMRST: - bit_size: 1 - variants: - - name: Reset - description: Reset cache hit monitor - value: 1 -enum/MISSMRST: - bit_size: 1 - variants: - - name: Reset - description: Reset cache miss monitor - value: 1 enum/MSTSEL: bit_size: 1 variants: diff --git a/data/registers/icache_v1_4crr.yaml b/data/registers/icache_v1_4crr.yaml index d495b13..629fd77 100644 --- a/data/registers/icache_v1_4crr.yaml +++ b/data/registers/icache_v1_4crr.yaml @@ -46,7 +46,6 @@ fieldset/CR: description: Set by software and cleared by hardware when the BUSYF flag is set (during cache maintenance operation). Writing 0 has no effect. bit_offset: 1 bit_size: 1 - enum: CACHEINV - name: WAYSEL description: This bit allows user to choose ICACHE set-associativity. It can be written by software only when cache is disabled (EN = 0). bit_offset: 2 @@ -64,12 +63,10 @@ fieldset/CR: description: Hit monitor reset. bit_offset: 18 bit_size: 1 - enum: HITMRST - name: MISSMRST description: Miss monitor reset. bit_offset: 19 bit_size: 1 - enum: MISSMRST fieldset/CRR: description: ICACHE region configuration register. fields: @@ -144,12 +141,6 @@ fieldset/SR: description: an error occurred during the operation. bit_offset: 2 bit_size: 1 -enum/CACHEINV: - bit_size: 1 - variants: - - name: Invalidate - description: Invalidate entire cache - value: 1 enum/HBURST: bit_size: 1 variants: @@ -157,18 +148,6 @@ enum/HBURST: value: 0 - name: Increment value: 1 -enum/HITMRST: - bit_size: 1 - variants: - - name: Reset - description: Reset cache hit monitor - value: 1 -enum/MISSMRST: - bit_size: 1 - variants: - - name: Reset - description: Reset cache miss monitor - value: 1 enum/MSTSEL: bit_size: 1 variants: diff --git a/transforms/ICACHE.yaml b/transforms/ICACHE.yaml index 7e6e634..3b9a87c 100644 --- a/transforms/ICACHE.yaml +++ b/transforms/ICACHE.yaml @@ -1,5 +1,8 @@ transforms: + - !DeleteEnums + from: ^(CACHEINV|HITMRST|MISSMRST)$ + - !DeleteFieldsets from: HMONR