target-xtensa: mark XtensaConfig structs as unused
The XtensaConfig structs will be defined but not used if they are for the opposite endianness from that of the binary being built; keep the compiler from complaining about this by marking them with the 'unused' attribute. Signed-off-by: Peter Maydell <peter.maydell@linaro.org> Acked-by: Max Filippov <jcmvbkbc@gmail.com> Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
This commit is contained in:
parent
d6aaddfe97
commit
11693a6cf0
@ -33,7 +33,7 @@
|
||||
#include "core-dc232b/core-isa.h"
|
||||
#include "overlay_tool.h"
|
||||
|
||||
static const XtensaConfig dc232b = {
|
||||
static const XtensaConfig dc232b __attribute__((unused)) = {
|
||||
.name = "dc232b",
|
||||
.gdb_regmap = {
|
||||
.num_regs = 120,
|
||||
|
@ -34,7 +34,7 @@
|
||||
#include "core-dc233c/core-isa.h"
|
||||
#include "overlay_tool.h"
|
||||
|
||||
static const XtensaConfig dc233c = {
|
||||
static const XtensaConfig dc233c __attribute__((unused)) = {
|
||||
.name = "dc233c",
|
||||
.gdb_regmap = {
|
||||
.num_regs = 121,
|
||||
|
@ -33,7 +33,7 @@
|
||||
#include "core-fsf/core-isa.h"
|
||||
#include "overlay_tool.h"
|
||||
|
||||
static const XtensaConfig fsf = {
|
||||
static const XtensaConfig fsf __attribute__((unused)) = {
|
||||
.name = "fsf",
|
||||
/* GDB for this core is not supported currently */
|
||||
.clock_freq_khz = 10000,
|
||||
|
Loading…
Reference in New Issue
Block a user