blob: 06696c803f7e002f220440c5a11362fdebf64cbb [file] [log] [blame]
Patrick Georgiac959032020-05-05 22:49:26 +02001/* SPDX-License-Identifier: GPL-2.0-or-later */
Gerd Hoffmanncbf30732013-05-31 09:23:26 +02002
3#include <cpu/cpu.h>
4#include <device/device.h>
Gerd Hoffmann59598b22015-09-10 10:58:52 +02005
6static void qemu_cpu_init(struct device *dev)
7{
Gerd Hoffmann59598b22015-09-10 10:58:52 +02008}
Gerd Hoffmanncbf30732013-05-31 09:23:26 +02009
10static struct device_operations cpu_dev_ops = {
Gerd Hoffmann59598b22015-09-10 10:58:52 +020011 .init = qemu_cpu_init,
Gerd Hoffmanncbf30732013-05-31 09:23:26 +020012};
13
Jonathan Neuschäfer8f06ce32017-11-20 01:56:44 +010014static const struct cpu_device_id cpu_table[] = {
Felix Held6a6ac1e2023-02-06 15:19:11 +010015 { X86_VENDOR_ANY, 0, 0 },
Felix Held1e781652023-02-08 11:39:16 +010016 CPU_TABLE_END
Gerd Hoffmanncbf30732013-05-31 09:23:26 +020017};
18
19static const struct cpu_driver driver __cpu_driver = {
20 .ops = &cpu_dev_ops,
21 .id_table = cpu_table,
22};
23
Patrick Rudolph5a61cc52018-11-17 20:56:21 +010024struct chip_operations cpu_qemu_x86_ops = {
Gerd Hoffmanncbf30732013-05-31 09:23:26 +020025 CHIP_NAME("QEMU x86 CPU")
26};