summaryrefslogtreecommitdiff
path: root/io/event.h
blob: 02f3fab64be2935e646eaeec3398819a2c192354 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#pragma once

#include <map>

#include "isa/isa.h"

struct event {
    ctlreg reg;
    unsigned int mask;
    unsigned int value;
    event(ctlreg reg, unsigned int value, unsigned int mask=~0)
        : reg(reg)
        , mask(mask)
        , value(value)
    { }
};

typedef std::multimap<std::uint64_t, event> event_log;