diff options
author | drath <drath@b42882b7-edfa-0310-969c-e2dbd0fdcd60> | 2007-04-12 13:27:23 +0000 |
---|---|---|
committer | drath <drath@b42882b7-edfa-0310-969c-e2dbd0fdcd60> | 2007-04-12 13:27:23 +0000 |
commit | 999f86b92b8efe89976e8196a19350a9822e0ca7 (patch) | |
tree | b10c374534c0a0331a27752d1a6e05daafebeb4d /src/target | |
parent | a48a5e6d94dc98cf69d15be133ae7b8283126bbe (diff) | |
download | openocd_libswd-999f86b92b8efe89976e8196a19350a9822e0ca7.tar.gz openocd_libswd-999f86b92b8efe89976e8196a19350a9822e0ca7.tar.bz2 openocd_libswd-999f86b92b8efe89976e8196a19350a9822e0ca7.tar.xz openocd_libswd-999f86b92b8efe89976e8196a19350a9822e0ca7.zip |
- correctly mask out bits that aren't part of a copied buffer
- fixed arm926ej-s CP15 register access handling
- correctly identify SYSCLK source in LPC3180 NAND flash controller driver
git-svn-id: svn://svn.berlios.de/openocd/trunk@139 b42882b7-edfa-0310-969c-e2dbd0fdcd60
Diffstat (limited to 'src/target')
-rw-r--r-- | src/target/arm926ejs.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/target/arm926ejs.c b/src/target/arm926ejs.c index 78d128de..ecabfcd6 100644 --- a/src/target/arm926ejs.c +++ b/src/target/arm926ejs.c @@ -158,7 +158,7 @@ int arm926ejs_read_cp15(target_t *target, u32 address, u32 *value) { jtag_add_dr_scan(4, fields, -1); jtag_execute_queue(); - } while ((access & 1) != 1); + } while (buf_get_u32(&access, 0, 1) != 1); #ifdef _DEBUG_INSTRUCTION_EXECUTION_ DEBUG("addr: 0x%x value: %8.8x", address, *value); @@ -234,7 +234,7 @@ int arm926ejs_write_cp15(target_t *target, u32 address, u32 value) { jtag_add_dr_scan(4, fields, -1); jtag_execute_queue(); - } while (access != 1); + } while (buf_get_u32(&access, 0, 1) != 1); #ifdef _DEBUG_INSTRUCTION_EXECUTION_ DEBUG("addr: 0x%x value: %8.8x", address, value); |