Skip to content

Commit 029689f

Browse files
dongyongtaofanghuaqi
authored andcommitted
SoC/evalsoc: Only enable/disable l2 cache enable bit
Signed-off-by: dongyongtao <dongyongtao@nucleisys.com>
1 parent 7571378 commit 029689f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

SoC/evalsoc/Common/Source/system_evalsoc.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1284,7 +1284,7 @@ void __sync_harts(void)
12841284
if (hartid == BOOT_HARTID) { // boot hart
12851285
// Enaable L2, disable cluster local memory
12861286
if (SMP_CTRLREG(smp_base, 0x4) & 0x1) {
1287-
SMP_CTRLREG(smp_base, 0x10) = 0x1;
1287+
SMP_CTRLREG(smp_base, 0x10) |= 0x1;
12881288
SMP_CTRLREG(smp_base, 0xd8) = 0x0;
12891289
}
12901290
// Enable SMP

0 commit comments

Comments
 (0)