base: Add a default output function for bitunion types.
authorGabe Black <gabeblack@google.com>
Tue, 27 Mar 2018 23:55:18 +0000 (16:55 -0700)
committerGabe Black <gabeblack@google.com>
Wed, 28 Mar 2018 20:24:16 +0000 (20:24 +0000)
commitab46e32b36810bec329a015d794f0aafff8d4b6f
tree48f77289e951e0a7b7d46a44a21a3339b321e133
parenta5f933d9af64b8625785fb3eea469d1e98442fdd
base: Add a default output function for bitunion types.

This way printing bitunions with, for instance, DPRINTF actually prints
something useful. More specialized overloads will still allow printing
particular bitunion types in ways that might make more sense for that
particular type.

Change-Id: I92beb0ce07683ba8b318cf25aa73e0057e4a60ef
Reviewed-on: https://gem5-review.googlesource.com/9461
Reviewed-by: Andreas Sandberg <andreas.sandberg@arm.com>
Maintainer: Gabe Black <gabeblack@google.com>
src/base/bitunion.hh
src/base/bituniontest.cc