mirror of
https://github.com/openjdk/jdk.git
synced 2026-01-28 03:58:21 +00:00
8376281: Remove USE_XLC_BUILTINS macro usage in AIX code
Reviewed-by: mdoerr, clanger
This commit is contained in:
parent
992a8ef46b
commit
479ac8b2fd
@ -1,6 +1,6 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright (c) 1997, 2025, Oracle and/or its affiliates. All rights reserved.
|
* Copyright (c) 1997, 2026, Oracle and/or its affiliates. All rights reserved.
|
||||||
* Copyright (c) 2012, 2025 SAP SE. All rights reserved.
|
* Copyright (c) 2012, 2026 SAP SE. All rights reserved.
|
||||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||||
*
|
*
|
||||||
* This code is free software; you can redistribute it and/or modify it
|
* This code is free software; you can redistribute it and/or modify it
|
||||||
@ -412,12 +412,8 @@ run_stub:
|
|||||||
}
|
}
|
||||||
|
|
||||||
void os::Aix::init_thread_fpu_state(void) {
|
void os::Aix::init_thread_fpu_state(void) {
|
||||||
#if !defined(USE_XLC_BUILTINS)
|
|
||||||
// Disable FP exceptions.
|
// Disable FP exceptions.
|
||||||
__asm__ __volatile__ ("mtfsfi 6,0");
|
__asm__ __volatile__ ("mtfsfi 6,0");
|
||||||
#else
|
|
||||||
__mtfsfi(6, 0);
|
|
||||||
#endif
|
|
||||||
}
|
}
|
||||||
|
|
||||||
////////////////////////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////////////////////////
|
||||||
|
|||||||
@ -1,6 +1,6 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright (c) 1997, 2026, Oracle and/or its affiliates. All rights reserved.
|
* Copyright (c) 1997, 2026, Oracle and/or its affiliates. All rights reserved.
|
||||||
* Copyright (c) 2012, 2013 SAP SE. All rights reserved.
|
* Copyright (c) 2012, 2026 SAP SE. All rights reserved.
|
||||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||||
*
|
*
|
||||||
* This code is free software; you can redistribute it and/or modify it
|
* This code is free software; you can redistribute it and/or modify it
|
||||||
@ -29,29 +29,21 @@
|
|||||||
// Included in runtime/prefetch.inline.hpp
|
// Included in runtime/prefetch.inline.hpp
|
||||||
|
|
||||||
inline void Prefetch::read(const void *loc, intx interval) {
|
inline void Prefetch::read(const void *loc, intx interval) {
|
||||||
#if !defined(USE_XLC_BUILTINS)
|
|
||||||
__asm__ __volatile__ (
|
__asm__ __volatile__ (
|
||||||
" dcbt 0, %0 \n"
|
" dcbt 0, %0 \n"
|
||||||
:
|
:
|
||||||
: /*%0*/"r" ( ((address)loc) +((long)interval) )
|
: /*%0*/"r" ( ((address)loc) +((long)interval) )
|
||||||
//:
|
//:
|
||||||
);
|
);
|
||||||
#else
|
|
||||||
__dcbt(((address)loc) +((long)interval));
|
|
||||||
#endif
|
|
||||||
}
|
}
|
||||||
|
|
||||||
inline void Prefetch::write(void *loc, intx interval) {
|
inline void Prefetch::write(void *loc, intx interval) {
|
||||||
#if !defined(USE_XLC_BUILTINS)
|
|
||||||
__asm__ __volatile__ (
|
__asm__ __volatile__ (
|
||||||
" dcbtst 0, %0 \n"
|
" dcbtst 0, %0 \n"
|
||||||
:
|
:
|
||||||
: /*%0*/"r" ( ((address)loc) +((long)interval) )
|
: /*%0*/"r" ( ((address)loc) +((long)interval) )
|
||||||
//:
|
//:
|
||||||
);
|
);
|
||||||
#else
|
|
||||||
__dcbtst( ((address)loc) +((long)interval) );
|
|
||||||
#endif
|
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif // OS_CPU_AIX_PPC_PREFETCH_AIX_PPC_INLINE_HPP
|
#endif // OS_CPU_AIX_PPC_PREFETCH_AIX_PPC_INLINE_HPP
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user