arm: Fixes based on UBSan and static analysis
Another churn to clean up undefined behaviour, mostly ARM, but some parts also touching the generic part of the code base. Most of the fixes are simply ensuring that proper intialisation. One of the more subtle changes is the return type of the sign-extension, which is changed to uint64_t. This is to avoid shifting negative values (undefined behaviour) in the ISA code.
This commit is contained in:
@@ -59,7 +59,7 @@ using namespace std;
|
||||
using namespace TheISA;
|
||||
|
||||
RealView::RealView(const Params *p)
|
||||
: Platform(p), system(p->system)
|
||||
: Platform(p), system(p->system), gic(nullptr)
|
||||
{}
|
||||
|
||||
void
|
||||
|
||||
Reference in New Issue
Block a user