[aarch64-port-dev ] Fix prefetching

Andrew Dinn adinn at redhat.com
Fri Nov 15 05:02:02 PST 2013


On 15/11/13 12:06, Andrew Haley wrote:
> Does what it says on the tin.


All very good -- except for this bit that I don't understand:

> diff -r cbc8c470e3bd -r e109c3759e38 src/cpu/aarch64/vm/macroAssembler_aarch64.hpp
> --- a/src/cpu/aarch64/vm/macroAssembler_aarch64.hpp	Thu Nov 14 12:59:57 2013 +0000
> +++ b/src/cpu/aarch64/vm/macroAssembler_aarch64.hpp	Fri Nov 15 11:52:30 2013 +0000
> @@ -1319,6 +1319,8 @@
> 
>  #ifdef BUILTIN_SIM
>    void c_stub_prolog(int gp_arg_count, int fp_arg_count, int ret_type);
> +#else
> +  void c_stub_prolog(int gp_arg_count, int fp_arg_count, int ret_type) { }
>  #endif
> 
>    // special version of call_VM_leaf_base needed for aarch64 simulator
> diff -r cbc8c470e3bd -r e109c3759e38 src/cpu/aarch64/vm/stubGenerator_aarch64.cpp
> --- a/src/cpu/aarch64/vm/stubGenerator_aarch64.cpp	Thu Nov 14 12:59:57 2013 +0000
> +++ b/src/cpu/aarch64/vm/stubGenerator_aarch64.cpp	Fri Nov 15 11:52:30 2013 +0000
> @@ -211,11 +211,8 @@
> 
>      // stub code
> 
> -#ifdef BUILTIN_SIM
>      // we need a C prolog to bootstrap the x86 caller into the sim
> -
>      __ c_stub_prolog(8, 0, MacroAssembler::ret_type_void);
> -#endif
> 
>      address aarch64_entry = __ pc();
> 

What was wrong with the old code?

regards,


Andrew Dinn
-----------




More information about the aarch64-port-dev mailing list