From: David B. <dbr...@us...> - 2009-10-31 01:29:54
|
This is an automated email from the git hooks/post-receive script. It was generated because a ref change was pushed to the repository containing the project "Main OpenOCD repository". The branch, master has been updated via 54c3cab266d2437299a6a3ba27e9f028d97822fa (commit) from e8a5092f1e23cee70cf1c3565db2ca40a61a11af (commit) Those revisions listed above that are new to this repository have not appeared on any other notification email; so we list those revisions in full, below. - Log ----------------------------------------------------------------- commit 54c3cab266d2437299a6a3ba27e9f028d97822fa Author: David Brownell <dbr...@us...> Date: Fri Oct 30 17:29:38 2009 -0700 ARM926: fix arm926ejs_mmu() reading from bad pointer I'm suspecting this code can never have worked, since the original commit (svn #335) in early 2008. Fix is just copy/paste from another (working) function. Signed-off-by: David Brownell <dbr...@us...> diff --git a/src/target/arm926ejs.c b/src/target/arm926ejs.c index 53f7980..608a7ed 100644 --- a/src/target/arm926ejs.c +++ b/src/target/arm926ejs.c @@ -906,7 +906,9 @@ static int arm926ejs_virt2phys(struct target_s *target, uint32_t virtual, uint32 static int arm926ejs_mmu(struct target_s *target, int *enabled) { armv4_5_common_t *armv4_5 = target->arch_info; - arm926ejs_common_t *arm926ejs = armv4_5->arch_info; + arm7_9_common_t *arm7_9 = armv4_5->arch_info; + arm9tdmi_common_t *arm9tdmi = arm7_9->arch_info; + arm926ejs_common_t *arm926ejs = arm9tdmi->arch_info; if (target->state != TARGET_HALTED) { ----------------------------------------------------------------------- Summary of changes: src/target/arm926ejs.c | 4 +++- 1 files changed, 3 insertions(+), 1 deletions(-) hooks/post-receive -- Main OpenOCD repository |