)]}'
{"id":"openocd~master~I7cbdbeb766fa18e31cc72be098ca2bc501877ed1","project":"openocd","branch":"master","hashtags":[],"change_id":"I7cbdbeb766fa18e31cc72be098ca2bc501877ed1","subject":"target/aarch64: fix watchpoint management","status":"MERGED","created":"2021-05-05 14:03:34.000000000","updated":"2021-05-22 09:04:20.000000000","submitted":"2021-05-22 09:04:20.000000000","submitter":{"_account_id":1000021,"name":"Antonio Borneo","email":"borneo.antonio@gmail.com","username":"borneoa"},"total_comment_count":0,"unresolved_comment_count":0,"has_review_started":true,"submission_id":"6205-1621674260033-4f343703","meta_rev_id":"acba6b380cf9245a9db20e74d043a6c72effa2f3","_number":6205,"owner":{"_account_id":1000021,"name":"Antonio Borneo","email":"borneo.antonio@gmail.com","username":"borneoa"},"actions":{},"labels":{"Verified":{"approved":{"_account_id":1000014,"name":"jenkins","username":"jenkins","tags":["SERVICE_USER"]},"all":[{"value":0,"_account_id":1000021,"name":"Antonio Borneo","email":"borneo.antonio@gmail.com","username":"borneoa"},{"value":0,"_account_id":1001013,"name":"Matthias Welwarsky","email":"matthias@welwarsky.de","username":"thinkfat"},{"value":0,"_account_id":1001668,"name":"Anthony Ferranti","email":"ferranti@os.amperecomputing.com","username":"ferranti-os"},{"value":0,"_account_id":1001579,"name":"Liming Sun","email":"limings@nvidia.com","username":"lsun"},{"value":0,"_account_id":1001482,"name":"Muhammad Omair Javaid","email":"omair.javaid@linaro.org","username":"omjavaid"},{"value":0,"_account_id":1000863,"name":"Tarek BOCHKATI","email":"tarek.bouchkati@gmail.com","username":"BouchkatiTarek"},{"value":0,"_account_id":1000735,"name":"David Ung","email":"david.ung.42@gmail.com","username":"davidung"},{"value":1,"date":"2021-05-22 09:04:20.000000000","permitted_voting_range":{"min":1,"max":1},"_account_id":1000014,"name":"jenkins","username":"jenkins","tags":["SERVICE_USER"]},{"value":0,"_account_id":1001726,"name":"Kevin Burke","email":"kevinb@os.amperecomputing.com","username":"kburke-ampere"},{"value":0,"_account_id":1001661,"name":"Daniel Goehring","email":"dgoehrin@os.amperecomputing.com","username":"dgoehrin"}],"values":{"-1":"Fails"," 0":"No score","+1":"Verified"},"description":"","default_value":0},"Code-Review":{"approved":{"_account_id":1000021,"name":"Antonio Borneo","email":"borneo.antonio@gmail.com","username":"borneoa"},"all":[{"value":2,"date":"2021-05-22 09:04:20.000000000","permitted_voting_range":{"min":2,"max":2},"_account_id":1000021,"name":"Antonio Borneo","email":"borneo.antonio@gmail.com","username":"borneoa"},{"value":0,"_account_id":1001013,"name":"Matthias Welwarsky","email":"matthias@welwarsky.de","username":"thinkfat"},{"value":0,"_account_id":1001668,"name":"Anthony Ferranti","email":"ferranti@os.amperecomputing.com","username":"ferranti-os"},{"value":1,"date":"2021-05-22 09:04:20.000000000","permitted_voting_range":{"min":1,"max":1},"_account_id":1001579,"name":"Liming Sun","email":"limings@nvidia.com","username":"lsun"},{"value":0,"_account_id":1001482,"name":"Muhammad Omair Javaid","email":"omair.javaid@linaro.org","username":"omjavaid"},{"value":0,"_account_id":1000863,"name":"Tarek BOCHKATI","email":"tarek.bouchkati@gmail.com","username":"BouchkatiTarek"},{"value":0,"_account_id":1000735,"name":"David Ung","email":"david.ung.42@gmail.com","username":"davidung"},{"value":0,"_account_id":1000014,"name":"jenkins","username":"jenkins","tags":["SERVICE_USER"]},{"value":0,"_account_id":1001726,"name":"Kevin Burke","email":"kevinb@os.amperecomputing.com","username":"kburke-ampere"},{"value":0,"_account_id":1001661,"name":"Daniel Goehring","email":"dgoehrin@os.amperecomputing.com","username":"dgoehrin"}],"values":{"-2":"This shall not be merged","-1":"I would prefer this is not merged as is"," 0":"No score","+1":"Looks good to me, but someone else must approve","+2":"Looks good to me, approved"},"description":"","default_value":0}},"removable_reviewers":[],"reviewers":{"REVIEWER":[{"_account_id":1000014,"name":"jenkins","username":"jenkins","tags":["SERVICE_USER"]},{"_account_id":1000021,"name":"Antonio Borneo","email":"borneo.antonio@gmail.com","username":"borneoa"},{"_account_id":1000735,"name":"David Ung","email":"david.ung.42@gmail.com","username":"davidung"},{"_account_id":1000863,"name":"Tarek BOCHKATI","email":"tarek.bouchkati@gmail.com","username":"BouchkatiTarek"},{"_account_id":1001013,"name":"Matthias Welwarsky","email":"matthias@welwarsky.de","username":"thinkfat"},{"_account_id":1001482,"name":"Muhammad Omair Javaid","email":"omair.javaid@linaro.org","username":"omjavaid"},{"_account_id":1001579,"name":"Liming Sun","email":"limings@nvidia.com","username":"lsun"},{"_account_id":1001661,"name":"Daniel Goehring","email":"dgoehrin@os.amperecomputing.com","username":"dgoehrin"},{"_account_id":1001668,"name":"Anthony Ferranti","email":"ferranti@os.amperecomputing.com","username":"ferranti-os"},{"_account_id":1001726,"name":"Kevin Burke","email":"kevinb@os.amperecomputing.com","username":"kburke-ampere"}]},"pending_reviewers":{},"reviewer_updates":[{"updated":"2021-05-05 14:03:34.000000000","updated_by":{"_account_id":1000735,"name":"David Ung","email":"david.ung.42@gmail.com","username":"davidung"},"reviewer":{"_account_id":1000735,"name":"David Ung","email":"david.ung.42@gmail.com","username":"davidung"},"state":"REVIEWER"},{"updated":"2021-05-05 14:03:34.000000000","updated_by":{"_account_id":1000863,"name":"Tarek BOCHKATI","email":"tarek.bouchkati@gmail.com","username":"BouchkatiTarek"},"reviewer":{"_account_id":1000863,"name":"Tarek BOCHKATI","email":"tarek.bouchkati@gmail.com","username":"BouchkatiTarek"},"state":"REVIEWER"},{"updated":"2021-05-05 14:03:34.000000000","updated_by":{"_account_id":1001013,"name":"Matthias Welwarsky","email":"matthias@welwarsky.de","username":"thinkfat"},"reviewer":{"_account_id":1001013,"name":"Matthias Welwarsky","email":"matthias@welwarsky.de","username":"thinkfat"},"state":"REVIEWER"},{"updated":"2021-05-05 14:03:34.000000000","updated_by":{"_account_id":1001482,"name":"Muhammad Omair Javaid","email":"omair.javaid@linaro.org","username":"omjavaid"},"reviewer":{"_account_id":1001482,"name":"Muhammad Omair Javaid","email":"omair.javaid@linaro.org","username":"omjavaid"},"state":"REVIEWER"},{"updated":"2021-05-05 14:03:34.000000000","updated_by":{"_account_id":1001661,"name":"Daniel Goehring","email":"dgoehrin@os.amperecomputing.com","username":"dgoehrin"},"reviewer":{"_account_id":1001661,"name":"Daniel Goehring","email":"dgoehrin@os.amperecomputing.com","username":"dgoehrin"},"state":"REVIEWER"},{"updated":"2021-05-05 14:03:34.000000000","updated_by":{"_account_id":1001668,"name":"Anthony Ferranti","email":"ferranti@os.amperecomputing.com","username":"ferranti-os"},"reviewer":{"_account_id":1001668,"name":"Anthony Ferranti","email":"ferranti@os.amperecomputing.com","username":"ferranti-os"},"state":"REVIEWER"},{"updated":"2021-05-05 14:03:34.000000000","updated_by":{"_account_id":1001726,"name":"Kevin Burke","email":"kevinb@os.amperecomputing.com","username":"kburke-ampere"},"reviewer":{"_account_id":1001726,"name":"Kevin Burke","email":"kevinb@os.amperecomputing.com","username":"kburke-ampere"},"state":"REVIEWER"},{"updated":"2021-05-05 15:45:29.000000000","updated_by":{"_account_id":1000014,"name":"jenkins","username":"jenkins","tags":["SERVICE_USER"]},"reviewer":{"_account_id":1000014,"name":"jenkins","username":"jenkins","tags":["SERVICE_USER"]},"state":"REVIEWER"},{"updated":"2021-05-14 04:55:34.000000000","updated_by":{"_account_id":1001579,"name":"Liming Sun","email":"limings@nvidia.com","username":"lsun"},"reviewer":{"_account_id":1001579,"name":"Liming Sun","email":"limings@nvidia.com","username":"lsun"},"state":"REVIEWER"}],"messages":[{"id":"567a19c43e8fb01e1f5d7aafd51e0b3a862f0fec","author":{"_account_id":1000021,"name":"Antonio Borneo","email":"borneo.antonio@gmail.com","username":"borneoa"},"real_author":{"_account_id":1000021,"name":"Antonio Borneo","email":"borneo.antonio@gmail.com","username":"borneoa"},"date":"2021-05-05 14:03:34.000000000","message":"Uploaded patch set 1.","accounts_in_message":[],"_revision_number":1},{"id":"9a02e2df141ce440cc7a930c8a965648f7faed40","author":{"_account_id":1000021,"name":"Antonio Borneo","email":"borneo.antonio@gmail.com","username":"borneoa"},"real_author":{"_account_id":1000021,"name":"Antonio Borneo","email":"borneo.antonio@gmail.com","username":"borneoa"},"date":"2021-05-05 14:07:02.000000000","message":"Patch Set 1:\n\nThis patch is not tested on a real HW. Would it be possible for you to test it?","accounts_in_message":[],"_revision_number":1},{"id":"bb9dc905df191b2787fab705ebb0f537a5facfa4","author":{"_account_id":1000014,"name":"jenkins","username":"jenkins","tags":["SERVICE_USER"]},"real_author":{"_account_id":1000014,"name":"jenkins","username":"jenkins","tags":["SERVICE_USER"]},"date":"2021-05-05 14:15:32.000000000","message":"Patch Set 1: Verified-1\n\nBuild Failed \n\nhttp://build.openocd.org/job/openocd-gerrit/14455/ : FAILURE\n\nhttp://build.openocd.org/job/openocd-gerrit-build/13709/ : FAILURE","accounts_in_message":[],"_revision_number":1},{"id":"fe7308c9409ed97339c3b7c49681e3f2352a97a6","author":{"_account_id":1000021,"name":"Antonio Borneo","email":"borneo.antonio@gmail.com","username":"borneoa"},"real_author":{"_account_id":1000021,"name":"Antonio Borneo","email":"borneo.antonio@gmail.com","username":"borneoa"},"date":"2021-05-05 14:42:11.000000000","message":"Uploaded patch set 2: Patch Set 1 was rebased.","accounts_in_message":[],"_revision_number":2},{"id":"4c3b93f829f385b153e9392ffcefee37886f4495","author":{"_account_id":1000014,"name":"jenkins","username":"jenkins","tags":["SERVICE_USER"]},"real_author":{"_account_id":1000014,"name":"jenkins","username":"jenkins","tags":["SERVICE_USER"]},"date":"2021-05-05 15:45:29.000000000","message":"Patch Set 2: Verified+1\n\nBuild Successful \n\nhttp://build.openocd.org/job/openocd-gerrit/14457/ : SUCCESS\n\nhttp://build.openocd.org/job/openocd-gerrit-build/13711/ : SUCCESS","accounts_in_message":[],"_revision_number":2},{"id":"ca1eb802d6006735a0d6e6619c492d611155f40f","author":{"_account_id":1001579,"name":"Liming Sun","email":"limings@nvidia.com","username":"lsun"},"real_author":{"_account_id":1001579,"name":"Liming Sun","email":"limings@nvidia.com","username":"lsun"},"date":"2021-05-14 04:55:34.000000000","message":"Patch Set 2: Code-Review+1\n\nThanks for the fix. Also tried it on my aarch64 setup. It worked for me.","accounts_in_message":[],"_revision_number":2},{"id":"b5e1cd697b6ff249d80b1ec890f416ff3c9301ef","author":{"_account_id":1000021,"name":"Antonio Borneo","email":"borneo.antonio@gmail.com","username":"borneoa"},"real_author":{"_account_id":1000021,"name":"Antonio Borneo","email":"borneo.antonio@gmail.com","username":"borneoa"},"date":"2021-05-16 15:18:36.000000000","message":"Patch Set 2: Code-Review+2","accounts_in_message":[],"_revision_number":2},{"id":"1026dd9bd9d5bfd30b19868b4c06a2c0165f4e80","author":{"_account_id":1000021,"name":"Antonio Borneo","email":"borneo.antonio@gmail.com","username":"borneoa"},"real_author":{"_account_id":1000021,"name":"Antonio Borneo","email":"borneo.antonio@gmail.com","username":"borneoa"},"date":"2021-05-16 20:15:12.000000000","message":"Patch Set 2:\n\nThanks for testing it.\nI will wait another week, in case someone has any concern, then I will merge it.","accounts_in_message":[],"_revision_number":2},{"id":"acba6b380cf9245a9db20e74d043a6c72effa2f3","author":{"_account_id":1000021,"name":"Antonio Borneo","email":"borneo.antonio@gmail.com","username":"borneoa"},"real_author":{"_account_id":1000021,"name":"Antonio Borneo","email":"borneo.antonio@gmail.com","username":"borneoa"},"date":"2021-05-22 09:04:20.000000000","message":"Change has been successfully cherry-picked as 15dd48119a3564df2ceb5512fc2b62ca42f43614 by Antonio Borneo","accounts_in_message":[],"_revision_number":3}],"current_revision":"15dd48119a3564df2ceb5512fc2b62ca42f43614","revisions":{"77201ec4d29e953aca9f3c66028ab8a28725d6dd":{"kind":"TRIVIAL_REBASE","_number":2,"created":"2021-05-05 14:42:11.000000000","uploader":{"_account_id":1000021,"name":"Antonio Borneo","email":"borneo.antonio@gmail.com","username":"borneoa"},"ref":"refs/changes/05/6205/2","fetch":{"anonymous http":{"url":"https://review.openocd.org/openocd","ref":"refs/changes/05/6205/2","commands":{"Branch":"git fetch https://review.openocd.org/openocd refs/changes/05/6205/2 \u0026\u0026 git checkout -b change-6205 FETCH_HEAD","Checkout":"git fetch https://review.openocd.org/openocd refs/changes/05/6205/2 \u0026\u0026 git checkout FETCH_HEAD","Cherry Pick":"git fetch https://review.openocd.org/openocd refs/changes/05/6205/2 \u0026\u0026 git cherry-pick FETCH_HEAD","Format Patch":"git fetch https://review.openocd.org/openocd refs/changes/05/6205/2 \u0026\u0026 git format-patch -1 --stdout FETCH_HEAD","Pull":"git pull https://review.openocd.org/openocd refs/changes/05/6205/2","Reset To":"git fetch https://review.openocd.org/openocd refs/changes/05/6205/2 \u0026\u0026 git reset --hard FETCH_HEAD"}}},"commit":{"parents":[{"commit":"abb015ea1b500ef8253798bb2f7cafd493364142","subject":"target/arm_dpm: rename \u0027wp_pc\u0027 as \u0027wp_addr\u0027"}],"author":{"name":"Antonio Borneo","email":"borneo.antonio@gmail.com","date":"2021-05-05 13:05:21.000000000","tz":120},"committer":{"name":"Antonio Borneo","email":"borneo.antonio@gmail.com","date":"2021-05-05 14:40:52.000000000","tz":120},"subject":"target/aarch64: fix watchpoint management","message":"target/aarch64: fix watchpoint management\n\nThe early documentation for armv8a report the debug register WFAR\nas containing the address of the instruction that triggered the\nwatchpoint. More recent documentation report the register EDWAR as\ncontaining the data memory address that triggered the watchpoint.\n\nThe name of macros CPUV8_DBG_WFAR0 and CPUV8_DBG_WFAR1 is not\ncorrect as they point to the debug register EDWAR, so reading such\nregister returns directly the data memory address that triggered\nthe watchpoint. The code incorrectly passes this address value to\nthe function armv8_dpm_report_wfar(); this function is supposed to\nadjust the PC value, decrementing it to remove the effects of the\nCPU pipeline. This pipeline offset, that has no meaning on the\nvalue in EDWAR, caused commit 651b861d5d5f (\"target/aarch64: Add\nwatchpoint support\") to add back the offset while comparing the\naddress with the watchpoint enabled.\n\nThe upper 32 bits of EDWAR are not valid in aarch32 mode and have\nto be ignored.\n\nRename CPUV8_DBG_WFAR0/1 as CPUV8_DBG_EDWAR0/1.\nRemove the function armv8_dpm_report_wfar().\nRemove the offset while searching the matching watchpoint.\nIgnore the upper 32 bits of EDWAR in aarch32 mode.\nFix a comment and the LOG text.\n\nChange-Id: I7cbdbeb766fa18e31cc72be098ca2bc501877ed1\nSigned-off-by: Antonio Borneo \u003cborneo.antonio@gmail.com\u003e\n"}},"15dd48119a3564df2ceb5512fc2b62ca42f43614":{"kind":"REWORK","_number":3,"created":"2021-05-22 09:04:20.000000000","uploader":{"_account_id":1000021,"name":"Antonio Borneo","email":"borneo.antonio@gmail.com","username":"borneoa"},"ref":"refs/changes/05/6205/3","fetch":{"anonymous http":{"url":"https://review.openocd.org/openocd","ref":"refs/changes/05/6205/3","commands":{"Branch":"git fetch https://review.openocd.org/openocd refs/changes/05/6205/3 \u0026\u0026 git checkout -b change-6205 FETCH_HEAD","Checkout":"git fetch https://review.openocd.org/openocd refs/changes/05/6205/3 \u0026\u0026 git checkout FETCH_HEAD","Cherry Pick":"git fetch https://review.openocd.org/openocd refs/changes/05/6205/3 \u0026\u0026 git cherry-pick FETCH_HEAD","Format Patch":"git fetch https://review.openocd.org/openocd refs/changes/05/6205/3 \u0026\u0026 git format-patch -1 --stdout FETCH_HEAD","Pull":"git pull https://review.openocd.org/openocd refs/changes/05/6205/3","Reset To":"git fetch https://review.openocd.org/openocd refs/changes/05/6205/3 \u0026\u0026 git reset --hard FETCH_HEAD"}}},"commit":{"parents":[{"commit":"510df38407da25aa0fa7427d26b9253455885d9b","subject":"target/arm_dpm: rename \u0027wp_pc\u0027 as \u0027wp_addr\u0027"}],"author":{"name":"Antonio Borneo","email":"borneo.antonio@gmail.com","date":"2021-05-05 13:05:21.000000000","tz":120},"committer":{"name":"Antonio Borneo","email":"borneo.antonio@gmail.com","date":"2021-05-22 09:04:20.000000000","tz":60},"subject":"target/aarch64: fix watchpoint management","message":"target/aarch64: fix watchpoint management\n\nThe early documentation for armv8a report the debug register WFAR\nas containing the address of the instruction that triggered the\nwatchpoint. More recent documentation report the register EDWAR as\ncontaining the data memory address that triggered the watchpoint.\n\nThe name of macros CPUV8_DBG_WFAR0 and CPUV8_DBG_WFAR1 is not\ncorrect as they point to the debug register EDWAR, so reading such\nregister returns directly the data memory address that triggered\nthe watchpoint. The code incorrectly passes this address value to\nthe function armv8_dpm_report_wfar(); this function is supposed to\nadjust the PC value, decrementing it to remove the effects of the\nCPU pipeline. This pipeline offset, that has no meaning on the\nvalue in EDWAR, caused commit 651b861d5d5f (\"target/aarch64: Add\nwatchpoint support\") to add back the offset while comparing the\naddress with the watchpoint enabled.\n\nThe upper 32 bits of EDWAR are not valid in aarch32 mode and have\nto be ignored.\n\nRename CPUV8_DBG_WFAR0/1 as CPUV8_DBG_EDWAR0/1.\nRemove the function armv8_dpm_report_wfar().\nRemove the offset while searching the matching watchpoint.\nIgnore the upper 32 bits of EDWAR in aarch32 mode.\nFix a comment and the LOG text.\n\nChange-Id: I7cbdbeb766fa18e31cc72be098ca2bc501877ed1\nSigned-off-by: Antonio Borneo \u003cborneo.antonio@gmail.com\u003e\nReviewed-on: http://openocd.zylin.com/6205\nTested-by: jenkins\nReviewed-by: Liming Sun \u003climings@nvidia.com\u003e\n"}},"dd94d69ae94edf767381cc25b74c0bfe2ee20311":{"kind":"REWORK","_number":1,"created":"2021-05-05 14:03:34.000000000","uploader":{"_account_id":1000021,"name":"Antonio Borneo","email":"borneo.antonio@gmail.com","username":"borneoa"},"ref":"refs/changes/05/6205/1","fetch":{"anonymous http":{"url":"https://review.openocd.org/openocd","ref":"refs/changes/05/6205/1","commands":{"Branch":"git fetch https://review.openocd.org/openocd refs/changes/05/6205/1 \u0026\u0026 git checkout -b change-6205 FETCH_HEAD","Checkout":"git fetch https://review.openocd.org/openocd refs/changes/05/6205/1 \u0026\u0026 git checkout FETCH_HEAD","Cherry Pick":"git fetch https://review.openocd.org/openocd refs/changes/05/6205/1 \u0026\u0026 git cherry-pick FETCH_HEAD","Format Patch":"git fetch https://review.openocd.org/openocd refs/changes/05/6205/1 \u0026\u0026 git format-patch -1 --stdout FETCH_HEAD","Pull":"git pull https://review.openocd.org/openocd refs/changes/05/6205/1","Reset To":"git fetch https://review.openocd.org/openocd refs/changes/05/6205/1 \u0026\u0026 git reset --hard FETCH_HEAD"}}},"commit":{"parents":[{"commit":"8bb2224dcd1941ab5d51951a4563e0f98dc7eb27","subject":"target/arm_dpm: rename \u0027wp_pc\u0027 as \u0027wp_addr\u0027"}],"author":{"name":"Antonio Borneo","email":"borneo.antonio@gmail.com","date":"2021-05-05 13:05:21.000000000","tz":120},"committer":{"name":"Antonio Borneo","email":"borneo.antonio@gmail.com","date":"2021-05-05 13:57:05.000000000","tz":120},"subject":"target/aarch64: fix watchpoint management","message":"target/aarch64: fix watchpoint management\n\nThe early documentation for armv8a report the debug register WFAR\nas containing the address of the instruction that triggered the\nwatchpoint. More recent documentation report the register EDWAR as\ncontaining the data memory address that triggered the watchpoint.\n\nThe name of macros CPUV8_DBG_WFAR0 and CPUV8_DBG_WFAR1 is not\ncorrect as they point to the debug register EDWAR, so reading such\nregister returns directly the data memory address that triggered\nthe watchpoint. The code incorrectly passes this address value to\nthe function armv8_dpm_report_wfar(); this function is supposed to\nadjust the PC value, decrementing it to remove the effects of the\nCPU pipeline. This pipeline offset, that has no meaning on the\nvalue in EDWAR, caused commit 651b861d5d5f (\"target/aarch64: Add\nwatchpoint support\") to add back the offset while comparing the\naddress with the watchpoint enabled.\n\nThe upper 32 bits of EDWAR are not valid in aarch32 mode and have\nto be ignored.\n\nRename CPUV8_DBG_WFAR0/1 as CPUV8_DBG_EDWAR0/1.\nRemove the function armv8_dpm_report_wfar().\nRemove the offset while searching the matching watchpoint.\nIgnore the upper 32 bits of EDWAR in aarch32 mode.\nFix a comment and the LOG text.\n\nChange-Id: I7cbdbeb766fa18e31cc72be098ca2bc501877ed1\nSigned-off-by: Antonio Borneo \u003cborneo.antonio@gmail.com\u003e\n"}}},"requirements":[],"submit_records":[],"submit_requirements":[]}
