lib: sbi_pmu: Align the event type offset as per SBI specification
authorYu Chien Peter Lin <peterlin@andestech.com>
Thu, 30 Mar 2023 08:41:14 +0000 (16:41 +0800)
committerAnup Patel <anup@brainfault.org>
Fri, 7 Apr 2023 04:36:59 +0000 (10:06 +0530)
commitedc9914392791031df624a7c79d1706f83199666
tree797e0f256f8511d14a4e616e03e9400001b4acf1
parent91767d093bf76c169c61194dd3ea7bbec1fc13f6
lib: sbi_pmu: Align the event type offset as per SBI specification

The bits encoded in event_idx[19:16] indicate the event type, with
an offset of 16 instead of 20.

Fixes: 13d40f21d588 ("lib: sbi: Add PMU support")
Signed-off-by: Yu Chien Peter Lin <peterlin@andestech.com>
Reviewed-by: Andrew Jones <ajones@ventanamicro.com>
Reviewed-by: Xiang W <wxjstz@126.com>
include/sbi/sbi_ecall_interface.h
lib/sbi/sbi_pmu.c