aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorØyvind Harboe <oyvind.harboe@zylin.com>2011-06-28 18:35:34 +0200
committerØyvind Harboe <oyvind.harboe@zylin.com>2011-06-28 18:39:01 +0200
commitd567df02b9f3e7d2e7e78b3c2907ecad9aa4bbd4 (patch)
tree5c0d88eea384d986a53a26659373eddbb50117f2
parent2482244b0788c007dd789c21a4416379c229ea5c (diff)
downloadriscv-openocd-d567df02b9f3e7d2e7e78b3c2907ecad9aa4bbd4.zip
riscv-openocd-d567df02b9f3e7d2e7e78b3c2907ecad9aa4bbd4.tar.gz
riscv-openocd-d567df02b9f3e7d2e7e78b3c2907ecad9aa4bbd4.tar.bz2
dsp5680xx: disable for now, it generates warnings
Use "git revert <commit>" to revert this commit, then build and repair and post patch to the mailing list. Warnings generated with: nios2-elf-gcc (GCC) 3.4.6 (Altera Nios II 9.1 b222) openocd/src/target/dsp5680xx.c: In function 'eonce_rx_upper_data': openocd/src/target/dsp5680xx.c:252: warning: cast increases required alignment of target type openocd/src/target/dsp5680xx.c: In function 'eonce_rx_lower_data': openocd/src/target/dsp5680xx.c:268: warning: cast increases required alignment of target type openocd/src/target/dsp5680xx.c: In function 'eonce_pc_store': openocd/src/target/dsp5680xx.c:508: warning: dereferencing type-punned pointer will break strict-aliasing rules openocd/src/target/dsp5680xx.c: In function 'dsp5680xx_read': openocd/src/target/dsp5680xx.c:736: warning: cast increases required alignment of target type openocd/src/target/dsp5680xx.c:737: warning: cast increases required alignment of target type openocd/src/target/dsp5680xx.c: In function 'dsp5680xx_write_8': openocd/src/target/dsp5680xx.c:823: warning: cast increases required alignment of target type openocd/src/target/dsp5680xx.c: In function 'dsp5680xx_write': openocd/src/target/dsp5680xx.c:938: warning: cast increases required alignment of target type openocd/src/target/dsp5680xx.c:941: warning: cast increases required alignment of target type openocd/src/target/dsp5680xx.c: In function 'dsp5680xx_f_wr': openocd/src/target/dsp5680xx.c:1355: warning: cast increases required alignment of target type
-rw-r--r--src/flash/nor/Makefile.am4
-rw-r--r--src/flash/nor/drivers.c5
-rw-r--r--src/target/Makefile.am6
-rw-r--r--src/target/target.c5
4 files changed, 13 insertions, 7 deletions
diff --git a/src/flash/nor/Makefile.am b/src/flash/nor/Makefile.am
index 98460af..41fb564 100644
--- a/src/flash/nor/Makefile.am
+++ b/src/flash/nor/Makefile.am
@@ -30,9 +30,11 @@ NOR_DRIVERS = \
str9x.c \
str9xpec.c \
tms470.c \
- dsp5680xx_flash.c \
virtual.c
+# Disabled for now, it generates warnings
+# dsp5680xx_flash.c
+
noinst_HEADERS = \
core.h \
cfi.h \
diff --git a/src/flash/nor/drivers.c b/src/flash/nor/drivers.c
index 52febf1..637c63b 100644
--- a/src/flash/nor/drivers.c
+++ b/src/flash/nor/drivers.c
@@ -43,7 +43,7 @@ extern struct flash_driver faux_flash;
extern struct flash_driver virtual_flash;
extern struct flash_driver stmsmi_flash;
extern struct flash_driver em357_flash;
-extern struct flash_driver dsp5680xx_flash;
+//extern struct flash_driver dsp5680xx_flash;
/**
* The list of built-in flash drivers.
@@ -72,7 +72,8 @@ static struct flash_driver *flash_drivers[] = {
&virtual_flash,
&stmsmi_flash,
&em357_flash,
- &dsp5680xx_flash,
+ // Disabled for now, it generates warnings
+ //&dsp5680xx_flash,
NULL,
};
diff --git a/src/target/Makefile.am b/src/target/Makefile.am
index 27ad054..2de0646 100644
--- a/src/target/Makefile.am
+++ b/src/target/Makefile.am
@@ -33,8 +33,10 @@ libtarget_la_SOURCES = \
$(MIPS32_SRC) \
avrt.c \
dsp563xx.c \
- dsp563xx_once.c \
- dsp5680xx.c
+ dsp563xx_once.c
+
+# This file generates warnings, disabled for now, see also target.c
+# dsp5680xx.c
TARGET_CORE_SRC = \
algorithm.c \
diff --git a/src/target/target.c b/src/target/target.c
index 0343156..f62915e 100644
--- a/src/target/target.c
+++ b/src/target/target.c
@@ -81,7 +81,7 @@ extern struct target_type arm11_target;
extern struct target_type mips_m4k_target;
extern struct target_type avr_target;
extern struct target_type dsp563xx_target;
-extern struct target_type dsp5680xx_target;
+//extern struct target_type dsp5680xx_target;
extern struct target_type testee_target;
extern struct target_type avr32_ap7k_target;
@@ -104,7 +104,8 @@ static struct target_type *target_types[] =
&mips_m4k_target,
&avr_target,
&dsp563xx_target,
- &dsp5680xx_target,
+// Disabled for now, it generates warnings
+// &dsp5680xx_target,
&testee_target,
&avr32_ap7k_target,
NULL,