I’m trying to figure out how can I measure a function’s performance using QEMU, since for what i’ve heard it’s not very cycle-accurate.
Right now I’m leaving one of the u54-mc’s harts running on a while loop as some sort of makeshift timer, but that is giving me weird results.
If i leave a single hart to execute the whole function by itself I get that it measures twice as much time to run than if I split the function between two harts but leave the second one waiting for the first to finish it´s part.
So I want to know what could be causing this difference, if it could be some QEMU or freedomstudio setting, or perhaps something else. Any help is appreciated.