mirror of
https://github.com/bminor/binutils-gdb.git
synced 2025-11-16 12:34:43 +00:00
sim: frv: fix -Wimplicit-fallthrough warnings
Replace some fall through comments with the attribute.
This commit is contained in:
@@ -136,7 +136,7 @@ frv_cache_reconfigure (SIM_CPU *current_cpu, FRV_CACHE *cache)
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
/* fall through */
|
ATTRIBUTE_FALLTHROUGH;
|
||||||
default:
|
default:
|
||||||
/* Set the cache to its original settings. */
|
/* Set the cache to its original settings. */
|
||||||
cache->sets = cache->configured_sets;
|
cache->sets = cache->configured_sets;
|
||||||
|
|||||||
@@ -835,7 +835,7 @@ set_exception_status_registers (
|
|||||||
{
|
{
|
||||||
case FRV_DIVISION_EXCEPTION:
|
case FRV_DIVISION_EXCEPTION:
|
||||||
set_isr_exception_fields (current_cpu, item);
|
set_isr_exception_fields (current_cpu, item);
|
||||||
/* fall thru to set reg_index. */
|
ATTRIBUTE_FALLTHROUGH; /* To set reg_index. */
|
||||||
case FRV_COMMIT_EXCEPTION:
|
case FRV_COMMIT_EXCEPTION:
|
||||||
/* For fr550, always use ESR0. */
|
/* For fr550, always use ESR0. */
|
||||||
if (STATE_ARCHITECTURE (sd)->mach == bfd_mach_fr550)
|
if (STATE_ARCHITECTURE (sd)->mach == bfd_mach_fr550)
|
||||||
@@ -855,7 +855,7 @@ set_exception_status_registers (
|
|||||||
break;
|
break;
|
||||||
case FRV_DATA_ACCESS_EXCEPTION:
|
case FRV_DATA_ACCESS_EXCEPTION:
|
||||||
set_daec = 1;
|
set_daec = 1;
|
||||||
/* fall through */
|
ATTRIBUTE_FALLTHROUGH;
|
||||||
case FRV_DATA_ACCESS_MMU_MISS:
|
case FRV_DATA_ACCESS_MMU_MISS:
|
||||||
case FRV_MEM_ADDRESS_NOT_ALIGNED:
|
case FRV_MEM_ADDRESS_NOT_ALIGNED:
|
||||||
/* Get the appropriate ESR, EPCR, EAR and EDR.
|
/* Get the appropriate ESR, EPCR, EAR and EDR.
|
||||||
|
|||||||
Reference in New Issue
Block a user