summaryrefslogtreecommitdiffstatshomepage
path: root/src/devices/cpu/arm7/ap2010cpu.h
blob: 3cf0a3c53dd126c3bb070914831f6a7bda3f66b9 (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
31
32
33
34
35
// license:BSD-3-Clause
// copyright-holders:QUFB
/***************************************************************************

    ARM7TDMI CPU component of the AP2010 LSI

***************************************************************************/

#ifndef MAME_CPU_ARM7_AP2010CPU_H
#define MAME_CPU_ARM7_AP2010CPU_H

#pragma once

#include "arm7.h"

class ap2010cpu_device : public arm7_cpu_device
{
public:
	ap2010cpu_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock = 0);

	void add_hotspot(offs_t pc);

protected:
	// device_execute_interface overrides
	virtual void execute_run() override;

private:
	uint32_t m_hotspot_select = 0;
	uint32_t m_hotspot[ARM7_MAX_HOTSPOTS];
};

// device type definition
DECLARE_DEVICE_TYPE(AP2010CPU, ap2010cpu_device)

#endif // MAME_CPU_ARM7_AP2010CPU_H