According to the event type code described in the document 'Freedom U540-C000 Manual.pdf',some code in linux kernel arch layler and the perf tool are added.
Also, there are some modifications located in opensbi to support operating mhpmevent3 and mhpmevent4 when setting event type code.
These changes are maked into 2 patch files, one for linux kernel, the other for opensbi.
According to the event type code described in the document 'Freedom U540-C000 Manual.pdf',some code in linux kernel arch layler and the perf tool are added.
Also, there are some modifications located in opensbi to support operating mhpmevent3 and mhpmevent4 when setting event type code.
These changes are maked into 2 patch files, one for linux kernel, the other for opensbi.
Signed-off-by: Jeremy Li lilg@pcl.ac.cn