diff options
author | Felix Held <felix-coreboot@felixheld.de> | 2021-07-13 20:37:06 +0200 |
---|---|---|
committer | Felix Held <felix-coreboot@felixheld.de> | 2021-07-14 20:38:21 +0000 |
commit | a0112c12c8d17eac5f04309db2a78fee44dc2428 (patch) | |
tree | ed72744f7395854df942659489607ab63cf3c767 | |
parent | e4a6edf5993396556ed09ee585558c03456449e4 (diff) |
soc/amd/stoneyridge: use index for mca_bank_name initialization
Change-Id: Id640fd8006c47ce1db8a8729407c1c9a9c1e79c3
Signed-off-by: Felix Held <felix-coreboot@felixheld.de>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/56272
Reviewed-by: Martin Roth <martinroth@google.com>
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
-rw-r--r-- | src/soc/amd/stoneyridge/mca.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/soc/amd/stoneyridge/mca.c b/src/soc/amd/stoneyridge/mca.c index d44400365a..50e7fdd6f3 100644 --- a/src/soc/amd/stoneyridge/mca.c +++ b/src/soc/amd/stoneyridge/mca.c @@ -136,13 +136,13 @@ failed: } static const char *const mca_bank_name[] = { - "Load-store unit", - "Instruction fetch unit", - "Combined unit", - "Reserved", - "Northbridge", - "Execution unit", - "Floating point unit" + [0] = "Load-store unit", + [1] = "Instruction fetch unit", + [2] = "Combined unit", + [3] = "Reserved", + [4] = "Northbridge", + [5] = "Execution unit", + [6] = "Floating point unit" }; static void mca_print_error(unsigned int bank) |