Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
util: Delete checks for old host definitions
IA-64 and PA-RISC host support is already removed with commit
b1cef6d ("Drop remaining bits of ia64 host support").

Signed-off-by: Akihiko Odaki <akihiko.odaki@daynix.com>
Message-Id: <20230810225922.21600-1-akihiko.odaki@daynix.com>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
  • Loading branch information
akihikodaki authored and rth7680 committed Sep 15, 2023
1 parent dff1ab6 commit a1eaa62
Showing 1 changed file with 3 additions and 12 deletions.
15 changes: 3 additions & 12 deletions util/oslib-posix.c
Expand Up @@ -585,7 +585,7 @@ char *qemu_get_pid_name(pid_t pid)

void *qemu_alloc_stack(size_t *sz)
{
void *ptr, *guardpage;
void *ptr;
int flags;
#ifdef CONFIG_DEBUG_STACK_USAGE
void *ptr2;
Expand Down Expand Up @@ -618,17 +618,8 @@ void *qemu_alloc_stack(size_t *sz)
abort();
}

#if defined(HOST_IA64)
/* separate register stack */
guardpage = ptr + (((*sz - pagesz) / 2) & ~pagesz);
#elif defined(HOST_HPPA)
/* stack grows up */
guardpage = ptr + *sz - pagesz;
#else
/* stack grows down */
guardpage = ptr;
#endif
if (mprotect(guardpage, pagesz, PROT_NONE) != 0) {
/* Stack grows down -- guard page at the bottom. */
if (mprotect(ptr, pagesz, PROT_NONE) != 0) {
perror("failed to set up stack guard page");
abort();
}
Expand Down

0 comments on commit a1eaa62

Please sign in to comment.