Skip to content
Snippets Groups Projects
Commit 878cd1be authored by Gopi Krishna Nedanuri's avatar Gopi Krishna Nedanuri
Browse files

lrdp_v2: Fix broken qdss.py

Use correct length for reading physical memory in continous
memory type of etr.

Change-Id: Ia4545b22a553b5e787ebfaf01888c85b35d192dc
parent 3892345c
No related branches found
No related tags found
No related merge requests found
# Copyright (c) 2012, 2014-2015 The Linux Foundation. All rights reserved. # Copyright (c) 2012, 2014-2018 The Linux Foundation. All rights reserved.
# #
# This program is free software; you can redistribute it and/or modify # This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License version 2 and # it under the terms of the GNU General Public License version 2 and
...@@ -412,8 +412,8 @@ class QDSSDump(): ...@@ -412,8 +412,8 @@ class QDSSDump():
if (sts & 0x1) == 1: if (sts & 0x1) == 1:
it1 = range(rwpval, dbaddr+rsz) it1 = range(rwpval, dbaddr+rsz)
it2 = range(dbaddr, rwpval) it2 = range(dbaddr, rwpval)
tmc_etr.write(ram_dump.read_physical(it1[0], len(it))) tmc_etr.write(ram_dump.read_physical(it1[0], len(it1)))
tmc_etr.write(ram_dump.read_physical(it2[0], len(it))) tmc_etr.write(ram_dump.read_physical(it2[0], len(it2)))
else: else:
it = range(dbaddr, dbaddr+rsz) it = range(dbaddr, dbaddr+rsz)
tmc_etr.write(ram_dump.read_physical(it[0], len(it))) tmc_etr.write(ram_dump.read_physical(it[0], len(it)))
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment