I think enhance_call_tree_pattern is the only bit of arch-specific code. Probably in an ideal universe it would go into some arch/ library, but for now, gcc_tools is the one that knows what arch we're targeting (sort of), so I move that pattern there. Then, I add support for branch patterns for RISC-V. This allows puncover to track stack usage on RV32 / LiteX.
I think
enhance_call_tree_pattern
is the only bit of arch-specific code. Probably in an ideal universe it would go into somearch/
library, but for now,gcc_tools
is the one that knows what arch we're targeting (sort of), so I move that pattern there. Then, I add support for branch patterns for RISC-V. This allows puncover to track stack usage on RV32 / LiteX.