Patrick Georgi | ac95903 | 2020-05-05 22:49:26 +0200 | [diff] [blame] | 1 | /* SPDX-License-Identifier: GPL-2.0-or-later */ |
Gerd Hoffmann | cbf3073 | 2013-05-31 09:23:26 +0200 | [diff] [blame] | 2 | |
| 3 | #include <cpu/cpu.h> |
| 4 | #include <device/device.h> |
Gerd Hoffmann | 59598b2 | 2015-09-10 10:58:52 +0200 | [diff] [blame] | 5 | |
| 6 | static void qemu_cpu_init(struct device *dev) |
| 7 | { |
Gerd Hoffmann | 59598b2 | 2015-09-10 10:58:52 +0200 | [diff] [blame] | 8 | } |
Gerd Hoffmann | cbf3073 | 2013-05-31 09:23:26 +0200 | [diff] [blame] | 9 | |
| 10 | static struct device_operations cpu_dev_ops = { |
Gerd Hoffmann | 59598b2 | 2015-09-10 10:58:52 +0200 | [diff] [blame] | 11 | .init = qemu_cpu_init, |
Gerd Hoffmann | cbf3073 | 2013-05-31 09:23:26 +0200 | [diff] [blame] | 12 | }; |
| 13 | |
Jonathan Neuschäfer | 8f06ce3 | 2017-11-20 01:56:44 +0100 | [diff] [blame] | 14 | static const struct cpu_device_id cpu_table[] = { |
Felix Held | 6a6ac1e | 2023-02-06 15:19:11 +0100 | [diff] [blame^] | 15 | { X86_VENDOR_ANY, 0, 0 }, |
| 16 | { 0, 0, 0 }, |
Gerd Hoffmann | cbf3073 | 2013-05-31 09:23:26 +0200 | [diff] [blame] | 17 | }; |
| 18 | |
| 19 | static const struct cpu_driver driver __cpu_driver = { |
| 20 | .ops = &cpu_dev_ops, |
| 21 | .id_table = cpu_table, |
| 22 | }; |
| 23 | |
Patrick Rudolph | 5a61cc5 | 2018-11-17 20:56:21 +0100 | [diff] [blame] | 24 | struct chip_operations cpu_qemu_x86_ops = { |
Gerd Hoffmann | cbf3073 | 2013-05-31 09:23:26 +0200 | [diff] [blame] | 25 | CHIP_NAME("QEMU x86 CPU") |
| 26 | }; |