summaryrefslogtreecommitdiffstatshomepage
path: root/src/emu/netlist/pstate.c
blob: 25543afced518cdf5cd0c18aeb8327d79f9c81e6 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
/*
 * pstate.c
 *
 */

#include "pstate.h"

ATTR_COLD pstate_manager_t::~pstate_manager_t()
{
    m_save.reset_and_free();
}



ATTR_COLD void pstate_manager_t::save_state_ptr(const pstring &stname, const netlist_data_type_e dt, const int size, const int count, void *ptr)
{
    pstring fullname = stname;
    ATTR_UNUSED  pstring ts[] = {
            "NOT_SUPPORTED",
            "DT_DOUBLE",
            "DT_INT64",
            "DT_INT8",
            "DT_INT",
            "DT_BOOLEAN"
    };

    NL_VERBOSE_OUT(("SAVE: <%s> %s(%d) %p\n", fullname.cstr(), ts[dt].cstr(), size, ptr));
    pstate_entry_t *p = new pstate_entry_t(stname, dt, size, count, ptr);
    m_save.add(p);
}