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:
Andreas Hansson
2014-11-14 03:53:51 -05:00
parent 9ffe0e7ba6
commit 481eb6ae80
35 changed files with 82 additions and 74 deletions

View File

@@ -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