remove unneeded enum

This commit is contained in:
eZio Pan 2024-02-22 00:33:42 +08:00
parent 66e0a73f38
commit 6b0d1a937b
4 changed files with 3 additions and 63 deletions

View File

@ -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:

View File

@ -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:

View File

@ -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:

View File

@ -1,5 +1,8 @@
transforms:
- !DeleteEnums
from: ^(CACHEINV|HITMRST|MISSMRST)$
- !DeleteFieldsets
from: HMONR