sim: Make Stats truly non-copy-constructible
The stats are silently non-copy constructible. Therefore, when someone
copy-constructs any object with stats, asserts happen when registering
the stats, as they were not constructed in the intended way.
This patch solves that by explicitly deleting the copy constructor,
trading an obscure run-time assert for a compile-time somehow more
meaningful error meassage.
This triggers some compilation errors as the FaultStats in the fault
definitions of ARM and SPARC use brace-enclosed initialisations in which
one of the elements derives from DataWrap, which is not
copy-constructible anymore. To fix that, this patch also adds a
constructor for the FaultVals in both ISAs.
Reviewed-by: Curtis Dunham <firstname.lastname@example.org>
Reviewed-by: Sascha Bischoff <email@example.com>
Reviewed-by: Jason Lowe-Power <firstname.lastname@example.org>
Reviewed-by: Andreas Sandberg <email@example.com>
Reviewed-by: Gabe Black <firstname.lastname@example.org>
Maintainer: Andreas Sandberg <email@example.com>
5 files changed