Antonio Borneo
42097baf19
armv7a: read ttbcr and ttb0/1 at every entry in debug state
...
Commit bfc5c764df avoids reading
ttbcr and ttb0/1 at every virt2phys translation by caching them,
and it updates the cached values in armv7a_arch_state().
But the purpose of any (*arch_state)() method, thus including
armv7a_arch_state(), is to only print out and inform the user
about some architecture specific status.
Moreover, to reduce the verbosity during a GDB session, the
method (*arch_state)() is not executed anymore at debug state
entry (check use of target->verbose_halt_msg in src/openocd.c),
thus the state of translation table gets out-of-sync triggering
Error: Address translation failure
or even using a wrong address in the memory R/W operation.
In addition, the commit above breaks the case of armv7r by
calling armv7a_read_ttbcr() unconditionally.
Fixed by moving in cortex_a_post_debug_entry() the call to
armv7a_read_ttbcr() on armv7a case only.
Remove the call to armv7a_read_ttbcr() in armv7a_identify_cache()
since it is (conditionally) called only in the same procedure
cortex_a_post_debug_entry().
Fixes: bfc5c764df ("armv7a: cache ttbcr and ttb0/1 on debug
state entry")
Change-Id: Ifc20eca190111832e339a01b7f85d28c1547c8ba
Signed-off-by: Antonio Borneo <borneo.antonio@gmail.com >
Reviewed-on: http://openocd.zylin.com/4601
Tested-by: jenkins
Reviewed-by: Matthias Welwarsky <matthias@welwarsky.de >
2018-07-22 09:09:06 +01:00
..
2018-03-15 17:08:53 +00:00
2018-07-20 15:14:46 +01:00
2018-01-16 09:05:41 +00:00
2018-04-07 20:30:12 +01:00
2018-03-30 09:58:21 +01:00
2016-05-24 22:30:01 +01:00
2017-02-10 13:50:17 +01:00
2017-02-10 13:50:17 +01:00
2017-02-10 13:50:17 +01:00
2016-12-08 12:32:58 +00:00
2016-05-24 22:30:55 +01:00
2016-12-08 12:32:58 +00:00
2016-05-24 22:30:55 +01:00
2016-07-19 10:45:16 +01:00
2016-05-24 22:30:55 +01:00
2017-02-10 13:50:17 +01:00
2016-05-24 22:30:55 +01:00
2017-02-10 13:50:17 +01:00
2016-05-24 22:30:55 +01:00
2017-02-10 13:50:17 +01:00
2017-02-10 13:50:17 +01:00
2017-02-10 13:50:17 +01:00
2017-02-10 13:50:17 +01:00
2017-02-10 13:50:17 +01:00
2016-05-24 22:30:55 +01:00
2016-05-24 22:30:01 +01:00
2016-05-24 22:30:55 +01:00
2018-06-22 09:24:59 +01:00
2018-04-07 20:31:37 +01:00
2018-04-10 09:13:02 +01:00
2018-04-10 09:13:02 +01:00
2018-04-07 20:31:37 +01:00
2018-06-22 07:42:27 +01:00
2018-01-13 08:36:29 +00:00
2018-04-27 20:00:51 +01:00
2017-02-10 14:18:34 +01:00
2016-05-24 22:30:01 +01:00
2016-05-24 22:30:55 +01:00
2018-03-10 14:25:10 +00:00
2018-07-18 21:10:53 +01:00
2018-06-04 09:16:08 +01:00
2016-05-24 22:30:01 +01:00
2016-05-24 22:30:55 +01:00
2018-06-04 09:16:08 +01:00
2016-05-24 22:30:01 +01:00
2016-05-24 22:30:55 +01:00
2016-05-24 22:30:01 +01:00
2017-02-10 13:50:17 +01:00
2018-07-18 21:10:53 +01:00
2016-05-24 22:30:55 +01:00
2017-02-10 13:50:17 +01:00
2017-02-10 13:50:17 +01:00
2018-02-21 08:19:19 +00:00
2016-05-24 22:30:55 +01:00
2018-07-22 09:09:06 +01:00
2018-07-22 09:09:06 +01:00
2018-07-19 10:49:24 +01:00
2018-07-19 10:49:24 +01:00
2018-07-18 21:10:53 +01:00
2018-04-10 06:16:40 +01:00
2018-03-16 08:58:06 +00:00
2017-02-10 14:01:39 +01:00
2018-03-16 08:58:06 +00:00
2018-03-16 08:58:06 +00:00
2018-01-04 09:09:46 +00:00
2018-03-10 13:23:48 +00:00
2018-07-13 09:19:09 +01:00
2018-07-13 09:18:14 +01:00
2017-02-10 13:50:17 +01:00
2016-05-24 22:30:55 +01:00
2016-05-24 22:30:01 +01:00
2016-05-24 22:30:55 +01:00
2016-05-24 22:30:01 +01:00
2016-05-24 22:30:55 +01:00
2016-05-24 22:30:01 +01:00
2016-05-24 22:30:55 +01:00
2017-02-10 13:50:17 +01:00
2016-05-24 22:30:55 +01:00
2018-06-04 09:17:14 +01:00
2017-02-10 13:50:17 +01:00
2018-07-22 09:09:06 +01:00
2016-12-08 12:25:35 +00:00
2018-07-19 10:49:24 +01:00
2018-04-12 20:49:18 +01:00
2016-05-24 22:30:01 +01:00
2016-05-24 22:30:55 +01:00
2017-02-10 13:50:17 +01:00
2016-05-24 22:30:55 +01:00
2017-02-10 13:50:17 +01:00
2016-05-24 22:30:55 +01:00
2018-01-25 16:43:49 +00:00
2016-05-24 22:30:55 +01:00
2016-05-24 22:30:01 +01:00
2016-05-24 22:30:55 +01:00
2016-05-24 22:30:01 +01:00
2016-05-24 22:30:55 +01:00
2016-05-24 22:30:01 +01:00
2016-05-24 22:30:55 +01:00
2016-05-24 22:30:01 +01:00
2017-02-10 13:50:17 +01:00
2018-03-30 09:58:21 +01:00
2018-07-13 17:15:57 +01:00
2017-02-10 13:50:17 +01:00
2018-01-13 09:25:34 +00:00
2017-02-10 13:50:17 +01:00
2017-02-10 13:50:17 +01:00
2018-06-04 09:16:08 +01:00
2016-05-24 22:30:01 +01:00
2016-05-24 22:30:55 +01:00
2017-05-08 18:03:28 +01:00
2017-07-07 09:54:35 +01:00
2018-04-10 06:16:40 +01:00
2018-04-10 06:16:40 +01:00
2017-05-08 18:05:58 +01:00
2018-01-13 09:46:00 +00:00
2018-06-22 09:24:17 +01:00
2017-05-08 18:04:56 +01:00
2017-02-10 13:50:17 +01:00
2017-02-10 13:50:17 +01:00
2017-10-23 10:54:24 +01:00
2016-05-24 22:30:55 +01:00
2016-05-24 22:30:01 +01:00
2016-05-24 22:30:55 +01:00
2016-05-24 22:30:55 +01:00
2016-05-24 22:30:55 +01:00
2016-05-24 22:30:01 +01:00
2016-05-24 22:30:55 +01:00
2017-02-10 13:50:17 +01:00
2017-02-10 13:50:17 +01:00
2017-02-10 13:50:17 +01:00
2016-05-24 22:30:55 +01:00
2017-02-10 13:50:17 +01:00
2017-02-10 13:50:17 +01:00
2017-02-10 13:50:17 +01:00
2016-05-24 22:30:55 +01:00
2017-02-10 13:50:17 +01:00
2016-05-24 22:30:55 +01:00
2018-06-04 09:16:08 +01:00
2017-02-10 13:50:17 +01:00
2016-05-24 22:30:01 +01:00
2016-05-24 22:30:55 +01:00
2016-05-24 22:30:01 +01:00
2018-01-13 09:25:12 +00:00
2016-05-24 22:30:01 +01:00
2018-03-27 09:15:27 +01:00
2018-07-13 09:18:21 +01:00
2018-06-04 09:16:08 +01:00
2016-12-08 12:34:53 +00:00
2016-05-24 22:30:55 +01:00
2018-02-27 11:19:10 +00:00
2018-04-10 06:16:40 +01:00
2017-12-07 07:53:13 +00:00
2016-05-24 22:30:01 +01:00
2016-05-24 22:30:55 +01:00
2018-04-10 06:16:40 +01:00
2018-07-18 21:27:12 +01:00
2018-06-04 09:16:08 +01:00
2016-05-24 22:30:01 +01:00
2016-05-24 22:30:01 +01:00
2016-05-24 22:30:55 +01:00
2018-01-30 07:34:32 +00:00
2018-01-13 09:25:34 +00:00
2018-01-25 16:43:49 +00:00
2016-05-24 22:30:55 +01:00