mirror of
https://github.com/genodelabs/genode.git
synced 2025-01-18 18:56:29 +00:00
base-hw: Add semicolons after [[fallthrough]]
GCC doesn't care, but clang complains if [[fallthrough]] is not followed by a semicolon. Existing code is also not consitent in this regard. Lets just fix it to make clang happy. Issue #3938
This commit is contained in:
parent
db17d51ff1
commit
9b84a8a402
@ -28,13 +28,13 @@ void Thread::exception(Cpu & cpu)
|
||||
{
|
||||
switch (regs->exception_type) {
|
||||
case Cpu::RESET: return;
|
||||
case Cpu::IRQ_LEVEL_EL0: [[fallthrough]]
|
||||
case Cpu::IRQ_LEVEL_EL1: [[fallthrough]]
|
||||
case Cpu::FIQ_LEVEL_EL0: [[fallthrough]]
|
||||
case Cpu::IRQ_LEVEL_EL0: [[fallthrough]];
|
||||
case Cpu::IRQ_LEVEL_EL1: [[fallthrough]];
|
||||
case Cpu::FIQ_LEVEL_EL0: [[fallthrough]];
|
||||
case Cpu::FIQ_LEVEL_EL1:
|
||||
_interrupt(cpu.id());
|
||||
return;
|
||||
case Cpu::SYNC_LEVEL_EL0: [[fallthrough]]
|
||||
case Cpu::SYNC_LEVEL_EL0: [[fallthrough]];
|
||||
case Cpu::SYNC_LEVEL_EL1:
|
||||
{
|
||||
Cpu::Esr::access_t esr = Cpu::Esr_el1::read();
|
||||
|
@ -146,15 +146,15 @@ Vm::Vm(unsigned cpu,
|
||||
void Vm::exception(Cpu & cpu)
|
||||
{
|
||||
switch (_state.exception_type) {
|
||||
case Cpu::IRQ_LEVEL_EL0: [[fallthrough]]
|
||||
case Cpu::IRQ_LEVEL_EL1: [[fallthrough]]
|
||||
case Cpu::FIQ_LEVEL_EL0: [[fallthrough]]
|
||||
case Cpu::IRQ_LEVEL_EL0: [[fallthrough]];
|
||||
case Cpu::IRQ_LEVEL_EL1: [[fallthrough]];
|
||||
case Cpu::FIQ_LEVEL_EL0: [[fallthrough]];
|
||||
case Cpu::FIQ_LEVEL_EL1:
|
||||
_interrupt(cpu.id());
|
||||
break;
|
||||
case Cpu::SYNC_LEVEL_EL0: [[fallthrough]]
|
||||
case Cpu::SYNC_LEVEL_EL1: [[fallthrough]]
|
||||
case Cpu::SERR_LEVEL_EL0: [[fallthrough]]
|
||||
case Cpu::SYNC_LEVEL_EL0: [[fallthrough]];
|
||||
case Cpu::SYNC_LEVEL_EL1: [[fallthrough]];
|
||||
case Cpu::SERR_LEVEL_EL0: [[fallthrough]];
|
||||
case Cpu::SERR_LEVEL_EL1:
|
||||
pause();
|
||||
_context.submit(1);
|
||||
|
Loading…
Reference in New Issue
Block a user