Skip to content
This repository was archived by the owner on Apr 13, 2019. It is now read-only.

Commit d13a3d7

Browse files
author
Michael Clark
committed
Raise CLIC_LEVEL_BITS to 8 and fix assertion
1 parent d7480e9 commit d13a3d7

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

hw/riscv/sifive_clic.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -782,7 +782,7 @@ DeviceState *sifive_clic_create(hwaddr addr, hwaddr size,
782782
assert(num_sources >= 4 && num_sources <= 1024);
783783
assert(int_bits >= 2 && int_bits <= 8);
784784
assert(mode_bits <= 2);
785-
assert(level_bits <= 5);
785+
assert(level_bits <= 8);
786786
assert(vec_bits <= 1);
787787

788788
DeviceState *dev = qdev_create(NULL, TYPE_SIFIVE_CLIC);

include/hw/riscv/sifive_clic.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ enum {
9898
SIFIVE_CLIC_CLIC_SMODE_OFFSET = 0xc00000,
9999

100100
SIFIVE_CLIC_PRIORITY_BITS = 8,
101-
SIFIVE_CLIC_LEVEL_BITS = 4
101+
SIFIVE_CLIC_LEVEL_BITS = 8
102102
};
103103

104104
DeviceState *sifive_clic_create(hwaddr addr, hwaddr size,

0 commit comments

Comments
 (0)