diff options
| author | Shokara Kou <kou@13f0.net> | 2023-12-30 15:50:12 -0500 |
|---|---|---|
| committer | Shokara Kou <kou@13f0.net> | 2023-12-30 15:50:19 -0500 |
| commit | 3fe4845098ca3478fc2d83e6fc943fec4c0459d6 (patch) | |
| tree | bbc684e930540b942195493a096a283f7e4bf0bf /emulators/qemu/patches/patch-util_cacheflush_c | |
| parent | 0f66e5686e2ce39c6821efcf2ead70bfcf4a4a83 (diff) | |
import qemu from openbsd 7.3 ports
Diffstat (limited to 'emulators/qemu/patches/patch-util_cacheflush_c')
| -rw-r--r-- | emulators/qemu/patches/patch-util_cacheflush_c | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/emulators/qemu/patches/patch-util_cacheflush_c b/emulators/qemu/patches/patch-util_cacheflush_c new file mode 100644 index 0000000..2d1d5d8 --- /dev/null +++ b/emulators/qemu/patches/patch-util_cacheflush_c | |||
| @@ -0,0 +1,19 @@ | |||
| 1 | Set OpenBSD/powerpc cache sizes. | ||
| 2 | |||
| 3 | Index: util/cacheflush.c | ||
| 4 | --- util/cacheflush.c.orig | ||
| 5 | +++ util/cacheflush.c | ||
| 6 | @@ -163,6 +163,13 @@ static void arch_cache_info(int *isize, int *dsize) | ||
| 7 | have_coherent_icache = qemu_getauxval(AT_HWCAP) & PPC_FEATURE_ICACHE_SNOOP; | ||
| 8 | } | ||
| 9 | |||
| 10 | +#elif defined(_ARCH_PPC) && defined (__OpenBSD__) | ||
| 11 | +static void arch_cache_info(int *isize, int *dsize) | ||
| 12 | +{ | ||
| 13 | + *isize = 32; | ||
| 14 | + *dsize = 32; | ||
| 15 | +} | ||
| 16 | + | ||
| 17 | #else | ||
| 18 | static void arch_cache_info(int *isize, int *dsize) { } | ||
| 19 | #endif /* arch_cache_info */ | ||
