xref: /openbmc/qemu/linux-user/hppa/target_proc.h (revision bad5cfcd)
1 /*
2  * HPPA specific proc functions for linux-user
3  *
4  * SPDX-License-Identifier: GPL-2.0-or-later
5  */
6 #ifndef HPPA_TARGET_PROC_H
7 #define HPPA_TARGET_PROC_H
8 
9 static int open_cpuinfo(CPUArchState *cpu_env, int fd)
10 {
11     int i, num_cpus;
12 
13     num_cpus = sysconf(_SC_NPROCESSORS_ONLN);
14     for (i = 0; i < num_cpus; i++) {
15         dprintf(fd, "processor\t: %d\n", i);
16         dprintf(fd, "cpu family\t: PA-RISC 1.1e\n");
17         dprintf(fd, "cpu\t\t: PA7300LC (PCX-L2)\n");
18         dprintf(fd, "capabilities\t: os32\n");
19         dprintf(fd, "model\t\t: 9000/778/B160L - "
20                     "Merlin L2 160 QEMU (9000/778/B160L)\n\n");
21     }
22     return 0;
23 }
24 #define HAVE_ARCH_PROC_CPUINFO
25 
26 #endif /* HPPA_TARGET_PROC_H */
27