diff options
author | Øyvind Harboe <oyvind.harboe@zylin.com> | 2010-06-10 15:27:35 +0200 |
---|---|---|
committer | Øyvind Harboe <oyvind.harboe@zylin.com> | 2010-06-11 15:53:23 +0200 |
commit | ecc8041c0f4c30a7310c0f8414a5261ee7a090ca (patch) | |
tree | d0f1a2783181619a99565c64da5d1f67105f3de2 /src/flash/nor/cfi.h | |
parent | 73aaaf483035cfe79fe339d6c073e851bc9f8f9a (diff) | |
download | riscv-openocd-ecc8041c0f4c30a7310c0f8414a5261ee7a090ca.zip riscv-openocd-ecc8041c0f4c30a7310c0f8414a5261ee7a090ca.tar.gz riscv-openocd-ecc8041c0f4c30a7310c0f8414a5261ee7a090ca.tar.bz2 |
cfi: fix error propagation
any read/write operation to memory can fail.
block write algorithm error propagation was broken
in that it would continue after an error was reported
writing data to ram or the algorithm failing.
Signed-off-by: Øyvind Harboe <oyvind.harboe@zylin.com>
Diffstat (limited to 'src/flash/nor/cfi.h')
-rw-r--r-- | src/flash/nor/cfi.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/flash/nor/cfi.h b/src/flash/nor/cfi.h index fa717dc..e2ff808 100644 --- a/src/flash/nor/cfi.h +++ b/src/flash/nor/cfi.h @@ -35,7 +35,7 @@ struct cfi_flash_bank uint16_t manufacturer; uint16_t device_id; - char qry[3]; + uint8_t qry[3]; /* identification string */ uint16_t pri_id; @@ -76,7 +76,7 @@ struct cfi_flash_bank */ struct cfi_intel_pri_ext { - char pri[3]; + uint8_t pri[3]; uint8_t major_version; uint8_t minor_version; uint32_t feature_support; |