Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 3acdbeb9 authored by Sarangdhar Joshi's avatar Sarangdhar Joshi Committed by Matt Wagantall
Browse files

Revert "soc: qcom: jtagv8: remove save and restore support for etm registers"



This reverts commit e483922421b6027a3692ccda42c542f24f6bf53d and
uses new function names.

Enabling back the ETM save and restore functionality since the
system instruction support is in place now and enabled on msm8996
v1 and v2 for saving and restoring of ETM registers.

Change-Id: I9ca24f1eed4ae5f9902fdffa958bf0363251ef4c
Signed-off-by: default avatarSarangdhar Joshi <spjoshi@codeaurora.org>
parent e0288e5b
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -871,6 +871,7 @@ void msm_jtag_save_state(void)
	/* ensure counter is updated before moving forward */
	mb();

	msm_jtag_etm_save_state();
	if (dbg.save_restore_enabled)
		dbg_save_state(cpu);
}
@@ -902,6 +903,7 @@ void msm_jtag_restore_state(void)

	if (dbg.save_restore_enabled)
		dbg_restore_state(cpu);
	msm_jtag_etm_restore_state();
}
EXPORT_SYMBOL(msm_jtag_restore_state);