Skip to content

Commit 7ba9d81

Browse files
committed
soc: riscv: wch: Remove unused __soc_is_irq function
The __soc_is_irq function is only used when CONFIG_RISCV_SOC_EXCEPTION_FROM_IRQ is enabled, which is not the case for any WCH SoC. The implementation is therefore dead code. Additionally, the implementation matches the default fallback behavior, so no functional change would occur even if the config were enabled. Signed-off-by: Miguel Gazquez <miguel.gazquez@bootlin.com>
1 parent fdd02c5 commit 7ba9d81

File tree

5 files changed

+0
-30
lines changed

5 files changed

+0
-30
lines changed

soc/wch/ch32v/ch32v00x/soc_irq.S

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,7 @@
88
#include <zephyr/toolchain.h>
99

1010
/* Exports */
11-
GTEXT(__soc_is_irq)
1211
GTEXT(__soc_handle_irq)
1312

14-
SECTION_FUNC(exception.other, __soc_is_irq)
15-
csrr a0, mcause
16-
srli a0, a0, 31
17-
ret
18-
1913
SECTION_FUNC(exception.other, __soc_handle_irq)
2014
ret

soc/wch/ch32v/qingke_v2a/soc_irq.S

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,7 @@
77
#include <zephyr/toolchain.h>
88

99
/* Exports */
10-
GTEXT(__soc_is_irq)
1110
GTEXT(__soc_handle_irq)
1211

13-
SECTION_FUNC(exception.other, __soc_is_irq)
14-
csrr a0, mcause
15-
srli a0, a0, 31
16-
ret
17-
1812
SECTION_FUNC(exception.other, __soc_handle_irq)
1913
ret

soc/wch/ch32v/qingke_v4b/soc_irq.S

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,7 @@
77
#include <zephyr/toolchain.h>
88

99
/* Exports */
10-
GTEXT(__soc_is_irq)
1110
GTEXT(__soc_handle_irq)
1211

13-
SECTION_FUNC(exception.other, __soc_is_irq)
14-
csrr a0, mcause
15-
srli a0, a0, 31
16-
ret
17-
1812
SECTION_FUNC(exception.other, __soc_handle_irq)
1913
ret

soc/wch/ch32v/qingke_v4c/soc_irq.S

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,7 @@
77
#include <zephyr/toolchain.h>
88

99
/* Exports */
10-
GTEXT(__soc_is_irq)
1110
GTEXT(__soc_handle_irq)
1211

13-
SECTION_FUNC(exception.other, __soc_is_irq)
14-
csrr a0, mcause
15-
srli a0, a0, 31
16-
ret
17-
1812
SECTION_FUNC(exception.other, __soc_handle_irq)
1913
ret

soc/wch/ch32v/qingke_v4f/soc_irq.S

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,7 @@
77
#include <zephyr/toolchain.h>
88

99
/* Exports */
10-
GTEXT(__soc_is_irq)
1110
GTEXT(__soc_handle_irq)
1211

13-
SECTION_FUNC(exception.other, __soc_is_irq)
14-
csrr a0, mcause
15-
srli a0, a0, 31
16-
ret
17-
1812
SECTION_FUNC(exception.other, __soc_handle_irq)
1913
ret

0 commit comments

Comments
 (0)