cpu.c (23901b2b721c0576007ab7580da8aa855d6042a9) | cpu.c (ba6558461cb0280ad861b376cbfff4680be82570) |
---|---|
1/* 2 * QEMU RX CPU 3 * 4 * Copyright (c) 2019 Yoshinori Sato 5 * 6 * This program is free software; you can redistribute it and/or modify it 7 * under the terms and conditions of the GNU General Public License, 8 * version 2 or later, as published by the Free Software Foundation. --- 79 unchanged lines hidden (view full) --- 88 /* In the case of kernel, it is ignored because it is not set. */ 89 env->pc = ldl_p(resetvec); 90 } 91 rx_cpu_unpack_psw(env, 0, 1); 92 env->regs[0] = env->isp = env->usp = 0; 93 env->fpsw = 0; 94 set_flush_to_zero(1, &env->fp_status); 95 set_flush_inputs_to_zero(1, &env->fp_status); | 1/* 2 * QEMU RX CPU 3 * 4 * Copyright (c) 2019 Yoshinori Sato 5 * 6 * This program is free software; you can redistribute it and/or modify it 7 * under the terms and conditions of the GNU General Public License, 8 * version 2 or later, as published by the Free Software Foundation. --- 79 unchanged lines hidden (view full) --- 88 /* In the case of kernel, it is ignored because it is not set. */ 89 env->pc = ldl_p(resetvec); 90 } 91 rx_cpu_unpack_psw(env, 0, 1); 92 env->regs[0] = env->isp = env->usp = 0; 93 env->fpsw = 0; 94 set_flush_to_zero(1, &env->fp_status); 95 set_flush_inputs_to_zero(1, &env->fp_status); |
96 /* 97 * TODO: this is not the correct NaN propagation rule for this 98 * architecture. The "RX Family User's Manual: Software" table 1.6 99 * defines the propagation rules as "prefer SNaN over QNaN; 100 * then prefer dest over source", which is float_2nan_prop_s_ab. 101 */ 102 set_float_2nan_prop_rule(float_2nan_prop_x87, &env->fp_status); |
|
96} 97 98static ObjectClass *rx_cpu_class_by_name(const char *cpu_model) 99{ 100 ObjectClass *oc; 101 char *typename; 102 103 oc = object_class_by_name(cpu_model); --- 149 unchanged lines hidden --- | 103} 104 105static ObjectClass *rx_cpu_class_by_name(const char *cpu_model) 106{ 107 ObjectClass *oc; 108 char *typename; 109 110 oc = object_class_by_name(cpu_model); --- 149 unchanged lines hidden --- |