register set: make noncopyable

If a register set gets copied, the '_plain_access' of the copy references
the plain access object of the original object.

Ref #2196
This commit is contained in:
Martin Stein 2017-03-06 13:28:25 +01:00 committed by Christian Helmuth
parent bed28dfe49
commit ecbb7534b9

View File

@ -16,6 +16,7 @@
/* Genode includes */
#include <util/register.h>
#include <util/noncopyable.h>
#include <base/exception.h>
namespace Genode {
@ -83,7 +84,7 @@ struct Genode::Register_set_plain_access
* 'Register_array_base' or 'Array_bitfield_base'.
*/
template <typename PLAIN_ACCESS>
class Genode::Register_set
class Genode::Register_set : Noncopyable
{
private: