Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

[mono] Remove unused x86/arm mach-support code #101339

Merged
merged 1 commit into from
Apr 20, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 0 additions & 6 deletions src/mono/mono/utils/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -187,15 +187,9 @@ set(utils_arch_sources mach-support-unknown.c)
elseif(HOST_AMD64)
set(utils_arch_sources
mach-support-amd64.c)
elseif(HOST_X86)
set(utils_arch_sources
mach-support-x86.c)
elseif(HOST_ARM64)
set(utils_arch_sources
mach-support-arm64.c)
elseif(HOST_ARM)
set(utils_arch_sources
mach-support-arm.c)
else()
#message(FATAL_ERROR "")
endif()
Expand Down
104 changes: 0 additions & 104 deletions src/mono/mono/utils/mach-support-arm.c

This file was deleted.

5 changes: 0 additions & 5 deletions src/mono/mono/utils/mach-support-arm64.c
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,6 @@
#include "utils/mono-compiler.h"
#include "mach-support.h"

/* _mcontext.h now defines __darwin_mcontext32, not __darwin_mcontext, starting with Xcode 5.1 */
#ifdef _STRUCT_MCONTEXT32
#define __darwin_mcontext __darwin_mcontext32
#endif

int
mono_mach_arch_get_mcontext_size (void)
{
Expand Down
128 changes: 0 additions & 128 deletions src/mono/mono/utils/mach-support-x86.c

This file was deleted.

5 changes: 0 additions & 5 deletions src/mono/mono/utils/mach-support.h
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,6 @@
#include <mach/thread_status.h>

#define MONO_MACH_ARCH_SUPPORTED 1
#if defined(__arm__)
typedef _STRUCT_MCONTEXT *mcontext_t;
#elif defined(__aarch64__)
typedef _STRUCT_MCONTEXT64 *mcontext_t;
#endif
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this is already defined by _mcontext.h nowadays


int mono_mach_arch_get_mcontext_size (void);
void mono_mach_arch_thread_states_to_mcontext (thread_state_t state, thread_state_t fpstate, void *context);
Expand Down
Loading