aarch32: Fix multiple bugs in amu_helpers.S
authorDimitris Papastamos <dimitris.papastamos@arm.com>
Tue, 20 Feb 2018 12:25:36 +0000 (12:25 +0000)
committerDimitris Papastamos <dimitris.papastamos@arm.com>
Tue, 27 Feb 2018 12:05:59 +0000 (12:05 +0000)
commitedea5c124d30776563a84337b017f158529f694f
treed63dd04f1eb91213d6557c6817ade3f493ec24cd
parente6e17ee8f17cc0e34bf681cc36e0954b6cf2e319
aarch32: Fix multiple bugs in amu_helpers.S

AArch32 uses odd-even pairs when passing 64-bit arguments to
functions.  For example in `amu_group0_cnt_write_internal()` the
second argument is a uint64_t which is passed in r2 and r3.

In `amu_group1_set_evtype_internal()` the value that needs to be
written to the system register is in r1 not in r0.

Change-Id: I20196268fdb1dc9ef6c4ebe61e761fba9623b3f2
Signed-off-by: Dimitris Papastamos <dimitris.papastamos@arm.com>
lib/extensions/amu/aarch32/amu_helpers.S