ths | 81fdc5f | 2007-10-08 13:04:02 +0000 | [diff] [blame] | 1 | /* |
| 2 | * CRIS helper routines. |
| 3 | * |
| 4 | * Copyright (c) 2007 AXIS Communications AB |
| 5 | * Written by Edgar E. Iglesias. |
| 6 | * |
| 7 | * This library is free software; you can redistribute it and/or |
| 8 | * modify it under the terms of the GNU Lesser General Public |
| 9 | * License as published by the Free Software Foundation; either |
| 10 | * version 2 of the License, or (at your option) any later version. |
| 11 | * |
| 12 | * This library is distributed in the hope that it will be useful, |
| 13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
| 15 | * Lesser General Public License for more details. |
| 16 | * |
| 17 | * You should have received a copy of the GNU Lesser General Public |
Blue Swirl | 8167ee8 | 2009-07-16 20:47:01 +0000 | [diff] [blame] | 18 | * License along with this library; if not, see <http://www.gnu.org/licenses/>. |
ths | 81fdc5f | 2007-10-08 13:04:02 +0000 | [diff] [blame] | 19 | */ |
| 20 | |
ths | 81fdc5f | 2007-10-08 13:04:02 +0000 | [diff] [blame] | 21 | #include "cpu.h" |
| 22 | #include "mmu.h" |
ths | 941db52 | 2007-10-28 01:44:40 +0000 | [diff] [blame] | 23 | #include "host-utils.h" |
ths | 81fdc5f | 2007-10-08 13:04:02 +0000 | [diff] [blame] | 24 | |
aliguori | d12d51d | 2009-01-15 21:48:06 +0000 | [diff] [blame] | 25 | |
| 26 | //#define CRIS_HELPER_DEBUG |
| 27 | |
| 28 | |
| 29 | #ifdef CRIS_HELPER_DEBUG |
| 30 | #define D(x) x |
aliguori | 93fcfe3 | 2009-01-15 22:34:14 +0000 | [diff] [blame] | 31 | #define D_LOG(...) qemu_log(__VA__ARGS__) |
aliguori | d12d51d | 2009-01-15 21:48:06 +0000 | [diff] [blame] | 32 | #else |
edgar_igl | e62b5b1 | 2008-03-14 01:04:24 +0000 | [diff] [blame] | 33 | #define D(x) |
aliguori | d12d51d | 2009-01-15 21:48:06 +0000 | [diff] [blame] | 34 | #define D_LOG(...) do { } while (0) |
| 35 | #endif |
edgar_igl | e62b5b1 | 2008-03-14 01:04:24 +0000 | [diff] [blame] | 36 | |
ths | 81fdc5f | 2007-10-08 13:04:02 +0000 | [diff] [blame] | 37 | #if defined(CONFIG_USER_ONLY) |
| 38 | |
Andreas Färber | a1170bf | 2012-03-14 01:38:21 +0100 | [diff] [blame] | 39 | void do_interrupt (CPUCRISState *env) |
ths | 81fdc5f | 2007-10-08 13:04:02 +0000 | [diff] [blame] | 40 | { |
edgar_igl | bbaf29c | 2008-03-01 17:25:33 +0000 | [diff] [blame] | 41 | env->exception_index = -1; |
| 42 | env->pregs[PR_ERP] = env->pc; |
ths | 81fdc5f | 2007-10-08 13:04:02 +0000 | [diff] [blame] | 43 | } |
| 44 | |
Andreas Färber | a1170bf | 2012-03-14 01:38:21 +0100 | [diff] [blame] | 45 | int cpu_cris_handle_mmu_fault(CPUCRISState * env, target_ulong address, int rw, |
Blue Swirl | 97b348e | 2011-08-01 16:12:17 +0000 | [diff] [blame] | 46 | int mmu_idx) |
ths | 81fdc5f | 2007-10-08 13:04:02 +0000 | [diff] [blame] | 47 | { |
edgar_igl | bbaf29c | 2008-03-01 17:25:33 +0000 | [diff] [blame] | 48 | env->exception_index = 0xaa; |
edgar_igl | 30abcfc | 2008-05-27 21:10:56 +0000 | [diff] [blame] | 49 | env->pregs[PR_EDA] = address; |
edgar_igl | bbaf29c | 2008-03-01 17:25:33 +0000 | [diff] [blame] | 50 | cpu_dump_state(env, stderr, fprintf, 0); |
edgar_igl | bbaf29c | 2008-03-01 17:25:33 +0000 | [diff] [blame] | 51 | return 1; |
ths | 81fdc5f | 2007-10-08 13:04:02 +0000 | [diff] [blame] | 52 | } |
| 53 | |
ths | 81fdc5f | 2007-10-08 13:04:02 +0000 | [diff] [blame] | 54 | #else /* !CONFIG_USER_ONLY */ |
| 55 | |
ths | 81fdc5f | 2007-10-08 13:04:02 +0000 | [diff] [blame] | 56 | |
Andreas Färber | a1170bf | 2012-03-14 01:38:21 +0100 | [diff] [blame] | 57 | static void cris_shift_ccs(CPUCRISState *env) |
ths | 81fdc5f | 2007-10-08 13:04:02 +0000 | [diff] [blame] | 58 | { |
| 59 | uint32_t ccs; |
| 60 | /* Apply the ccs shift. */ |
edgar_igl | 9004627 | 2008-02-28 08:28:32 +0000 | [diff] [blame] | 61 | ccs = env->pregs[PR_CCS]; |
edgar_igl | b41f7df | 2008-05-02 22:16:17 +0000 | [diff] [blame] | 62 | ccs = ((ccs & 0xc0000000) | ((ccs << 12) >> 2)) & ~0x3ff; |
edgar_igl | 9004627 | 2008-02-28 08:28:32 +0000 | [diff] [blame] | 63 | env->pregs[PR_CCS] = ccs; |
ths | 81fdc5f | 2007-10-08 13:04:02 +0000 | [diff] [blame] | 64 | } |
| 65 | |
Andreas Färber | a1170bf | 2012-03-14 01:38:21 +0100 | [diff] [blame] | 66 | int cpu_cris_handle_mmu_fault (CPUCRISState *env, target_ulong address, int rw, |
Blue Swirl | 97b348e | 2011-08-01 16:12:17 +0000 | [diff] [blame] | 67 | int mmu_idx) |
edgar_igl | e62b5b1 | 2008-03-14 01:04:24 +0000 | [diff] [blame] | 68 | { |
Edgar E. Iglesias | 2fa73ec | 2009-04-25 15:51:53 +0200 | [diff] [blame] | 69 | struct cris_mmu_result res; |
edgar_igl | e62b5b1 | 2008-03-14 01:04:24 +0000 | [diff] [blame] | 70 | int prot, miss; |
| 71 | int r = -1; |
| 72 | target_ulong phy; |
| 73 | |
edgar_igl | b41f7df | 2008-05-02 22:16:17 +0000 | [diff] [blame] | 74 | D(printf ("%s addr=%x pc=%x rw=%x\n", __func__, address, env->pc, rw)); |
Edgar E. Iglesias | be9f2de | 2009-10-08 12:07:11 +0200 | [diff] [blame] | 75 | miss = cris_mmu_translate(&res, env, address & TARGET_PAGE_MASK, |
Edgar E. Iglesias | 9f5a1fa | 2010-07-05 11:39:04 +0200 | [diff] [blame] | 76 | rw, mmu_idx, 0); |
edgar_igl | e62b5b1 | 2008-03-14 01:04:24 +0000 | [diff] [blame] | 77 | if (miss) |
| 78 | { |
edgar_igl | 1b1a38b | 2008-06-09 23:18:06 +0000 | [diff] [blame] | 79 | if (env->exception_index == EXCP_BUSFAULT) |
Edgar E. Iglesias | 7a97735 | 2010-02-15 11:47:34 +0100 | [diff] [blame] | 80 | cpu_abort(env, |
edgar_igl | ef29a70 | 2008-05-06 08:04:40 +0000 | [diff] [blame] | 81 | "CRIS: Illegal recursive bus fault." |
Edgar E. Iglesias | 7a97735 | 2010-02-15 11:47:34 +0100 | [diff] [blame] | 82 | "addr=%x rw=%d\n", |
| 83 | address, rw); |
edgar_igl | ef29a70 | 2008-05-06 08:04:40 +0000 | [diff] [blame] | 84 | |
Edgar E. Iglesias | be9f2de | 2009-10-08 12:07:11 +0200 | [diff] [blame] | 85 | env->pregs[PR_EDA] = address; |
edgar_igl | 1b1a38b | 2008-06-09 23:18:06 +0000 | [diff] [blame] | 86 | env->exception_index = EXCP_BUSFAULT; |
edgar_igl | e62b5b1 | 2008-03-14 01:04:24 +0000 | [diff] [blame] | 87 | env->fault_vector = res.bf_vec; |
| 88 | r = 1; |
| 89 | } |
| 90 | else |
| 91 | { |
edgar_igl | 980f8a0 | 2008-09-05 17:17:55 +0000 | [diff] [blame] | 92 | /* |
| 93 | * Mask off the cache selection bit. The ETRAX busses do not |
| 94 | * see the top bit. |
| 95 | */ |
| 96 | phy = res.phy & ~0x80000000; |
edgar_igl | b41f7df | 2008-05-02 22:16:17 +0000 | [diff] [blame] | 97 | prot = res.prot; |
Paul Brook | d4c430a | 2010-03-17 02:14:28 +0000 | [diff] [blame] | 98 | tlb_set_page(env, address & TARGET_PAGE_MASK, phy, |
Edgar E. Iglesias | 58aebb9 | 2010-09-18 12:34:59 +0200 | [diff] [blame] | 99 | prot, mmu_idx, TARGET_PAGE_SIZE); |
Paul Brook | d4c430a | 2010-03-17 02:14:28 +0000 | [diff] [blame] | 100 | r = 0; |
edgar_igl | e62b5b1 | 2008-03-14 01:04:24 +0000 | [diff] [blame] | 101 | } |
edgar_igl | b41f7df | 2008-05-02 22:16:17 +0000 | [diff] [blame] | 102 | if (r > 0) |
Blue Swirl | 97b348e | 2011-08-01 16:12:17 +0000 | [diff] [blame] | 103 | D_LOG("%s returns %d irqreq=%x addr=%x phy=%x vec=%x pc=%x\n", |
| 104 | __func__, r, env->interrupt_request, address, res.phy, |
| 105 | res.bf_vec, env->pc); |
edgar_igl | e62b5b1 | 2008-03-14 01:04:24 +0000 | [diff] [blame] | 106 | return r; |
| 107 | } |
| 108 | |
Andreas Färber | a1170bf | 2012-03-14 01:38:21 +0100 | [diff] [blame] | 109 | static void do_interruptv10(CPUCRISState *env) |
Edgar E. Iglesias | 7a97735 | 2010-02-15 11:47:34 +0100 | [diff] [blame] | 110 | { |
| 111 | int ex_vec = -1; |
| 112 | |
| 113 | D_LOG( "exception index=%d interrupt_req=%d\n", |
| 114 | env->exception_index, |
| 115 | env->interrupt_request); |
| 116 | |
| 117 | assert(!(env->pregs[PR_CCS] & PFIX_FLAG)); |
| 118 | switch (env->exception_index) |
| 119 | { |
| 120 | case EXCP_BREAK: |
| 121 | /* These exceptions are genereated by the core itself. |
| 122 | ERP should point to the insn following the brk. */ |
| 123 | ex_vec = env->trap_vector; |
Edgar E. Iglesias | f756c7a | 2011-07-05 12:56:41 +0200 | [diff] [blame] | 124 | env->pregs[PRV10_BRP] = env->pc; |
Edgar E. Iglesias | 7a97735 | 2010-02-15 11:47:34 +0100 | [diff] [blame] | 125 | break; |
| 126 | |
| 127 | case EXCP_NMI: |
| 128 | /* NMI is hardwired to vector zero. */ |
| 129 | ex_vec = 0; |
Lars Persson | 8219314 | 2012-06-14 16:23:55 +0200 | [diff] [blame] | 130 | env->pregs[PR_CCS] &= ~M_FLAG_V10; |
Edgar E. Iglesias | f756c7a | 2011-07-05 12:56:41 +0200 | [diff] [blame] | 131 | env->pregs[PRV10_BRP] = env->pc; |
Edgar E. Iglesias | 7a97735 | 2010-02-15 11:47:34 +0100 | [diff] [blame] | 132 | break; |
| 133 | |
| 134 | case EXCP_BUSFAULT: |
Blue Swirl | 43dc2a6 | 2010-03-18 18:41:57 +0000 | [diff] [blame] | 135 | cpu_abort(env, "Unhandled busfault"); |
Edgar E. Iglesias | 7a97735 | 2010-02-15 11:47:34 +0100 | [diff] [blame] | 136 | break; |
| 137 | |
| 138 | default: |
| 139 | /* The interrupt controller gives us the vector. */ |
| 140 | ex_vec = env->interrupt_vector; |
| 141 | /* Normal interrupts are taken between |
| 142 | TB's. env->pc is valid here. */ |
| 143 | env->pregs[PR_ERP] = env->pc; |
| 144 | break; |
| 145 | } |
| 146 | |
| 147 | if (env->pregs[PR_CCS] & U_FLAG) { |
| 148 | /* Swap stack pointers. */ |
| 149 | env->pregs[PR_USP] = env->regs[R_SP]; |
| 150 | env->regs[R_SP] = env->ksp; |
| 151 | } |
| 152 | |
| 153 | /* Now that we are in kernel mode, load the handlers address. */ |
Aurelien Jarno | cf7e0c8 | 2012-09-07 16:13:27 +0200 | [diff] [blame] | 154 | env->pc = cpu_ldl_code(env, env->pregs[PR_EBP] + ex_vec * 4); |
Edgar E. Iglesias | 7a97735 | 2010-02-15 11:47:34 +0100 | [diff] [blame] | 155 | env->locked_irq = 1; |
Stefan Sandstrom | 774d5c5 | 2011-12-12 11:38:31 +0100 | [diff] [blame] | 156 | env->pregs[PR_CCS] |= F_FLAG_V10; /* set F. */ |
Edgar E. Iglesias | 7a97735 | 2010-02-15 11:47:34 +0100 | [diff] [blame] | 157 | |
| 158 | qemu_log_mask(CPU_LOG_INT, "%s isr=%x vec=%x ccs=%x pid=%d erp=%x\n", |
| 159 | __func__, env->pc, ex_vec, |
| 160 | env->pregs[PR_CCS], |
| 161 | env->pregs[PR_PID], |
| 162 | env->pregs[PR_ERP]); |
| 163 | } |
| 164 | |
Andreas Färber | a1170bf | 2012-03-14 01:38:21 +0100 | [diff] [blame] | 165 | void do_interrupt(CPUCRISState *env) |
ths | 81fdc5f | 2007-10-08 13:04:02 +0000 | [diff] [blame] | 166 | { |
edgar_igl | e62b5b1 | 2008-03-14 01:04:24 +0000 | [diff] [blame] | 167 | int ex_vec = -1; |
ths | 81fdc5f | 2007-10-08 13:04:02 +0000 | [diff] [blame] | 168 | |
Edgar E. Iglesias | 7a97735 | 2010-02-15 11:47:34 +0100 | [diff] [blame] | 169 | if (env->pregs[PR_VR] < 32) |
| 170 | return do_interruptv10(env); |
| 171 | |
aliguori | d12d51d | 2009-01-15 21:48:06 +0000 | [diff] [blame] | 172 | D_LOG( "exception index=%d interrupt_req=%d\n", |
edgar_igl | b41f7df | 2008-05-02 22:16:17 +0000 | [diff] [blame] | 173 | env->exception_index, |
aliguori | d12d51d | 2009-01-15 21:48:06 +0000 | [diff] [blame] | 174 | env->interrupt_request); |
ths | 81fdc5f | 2007-10-08 13:04:02 +0000 | [diff] [blame] | 175 | |
| 176 | switch (env->exception_index) |
| 177 | { |
| 178 | case EXCP_BREAK: |
edgar_igl | e62b5b1 | 2008-03-14 01:04:24 +0000 | [diff] [blame] | 179 | /* These exceptions are genereated by the core itself. |
| 180 | ERP should point to the insn following the brk. */ |
| 181 | ex_vec = env->trap_vector; |
edgar_igl | a1aebcb | 2008-10-07 22:48:41 +0000 | [diff] [blame] | 182 | env->pregs[PR_ERP] = env->pc; |
ths | 81fdc5f | 2007-10-08 13:04:02 +0000 | [diff] [blame] | 183 | break; |
edgar_igl | e62b5b1 | 2008-03-14 01:04:24 +0000 | [diff] [blame] | 184 | |
edgar_igl | 1b1a38b | 2008-06-09 23:18:06 +0000 | [diff] [blame] | 185 | case EXCP_NMI: |
| 186 | /* NMI is hardwired to vector zero. */ |
| 187 | ex_vec = 0; |
Lars Persson | 8219314 | 2012-06-14 16:23:55 +0200 | [diff] [blame] | 188 | env->pregs[PR_CCS] &= ~M_FLAG_V32; |
edgar_igl | 1b1a38b | 2008-06-09 23:18:06 +0000 | [diff] [blame] | 189 | env->pregs[PR_NRP] = env->pc; |
| 190 | break; |
| 191 | |
| 192 | case EXCP_BUSFAULT: |
edgar_igl | e62b5b1 | 2008-03-14 01:04:24 +0000 | [diff] [blame] | 193 | ex_vec = env->fault_vector; |
edgar_igl | b41f7df | 2008-05-02 22:16:17 +0000 | [diff] [blame] | 194 | env->pregs[PR_ERP] = env->pc; |
ths | 81fdc5f | 2007-10-08 13:04:02 +0000 | [diff] [blame] | 195 | break; |
| 196 | |
| 197 | default: |
edgar_igl | 1b1a38b | 2008-06-09 23:18:06 +0000 | [diff] [blame] | 198 | /* The interrupt controller gives us the vector. */ |
edgar_igl | b41f7df | 2008-05-02 22:16:17 +0000 | [diff] [blame] | 199 | ex_vec = env->interrupt_vector; |
| 200 | /* Normal interrupts are taken between |
| 201 | TB's. env->pc is valid here. */ |
| 202 | env->pregs[PR_ERP] = env->pc; |
| 203 | break; |
ths | 81fdc5f | 2007-10-08 13:04:02 +0000 | [diff] [blame] | 204 | } |
edgar_igl | b41f7df | 2008-05-02 22:16:17 +0000 | [diff] [blame] | 205 | |
edgar_igl | cddffe3 | 2008-10-08 14:22:17 +0000 | [diff] [blame] | 206 | /* Fill in the IDX field. */ |
| 207 | env->pregs[PR_EXS] = (ex_vec & 0xff) << 8; |
| 208 | |
edgar_igl | cf1d97f | 2008-05-13 10:59:14 +0000 | [diff] [blame] | 209 | if (env->dslot) { |
aliguori | d12d51d | 2009-01-15 21:48:06 +0000 | [diff] [blame] | 210 | D_LOG("excp isr=%x PC=%x ds=%d SP=%x" |
edgar_igl | cf1d97f | 2008-05-13 10:59:14 +0000 | [diff] [blame] | 211 | " ERP=%x pid=%x ccs=%x cc=%d %x\n", |
| 212 | ex_vec, env->pc, env->dslot, |
edgar_igl | ef29a70 | 2008-05-06 08:04:40 +0000 | [diff] [blame] | 213 | env->regs[R_SP], |
edgar_igl | b41f7df | 2008-05-02 22:16:17 +0000 | [diff] [blame] | 214 | env->pregs[PR_ERP], env->pregs[PR_PID], |
| 215 | env->pregs[PR_CCS], |
aliguori | d12d51d | 2009-01-15 21:48:06 +0000 | [diff] [blame] | 216 | env->cc_op, env->cc_mask); |
edgar_igl | cf1d97f | 2008-05-13 10:59:14 +0000 | [diff] [blame] | 217 | /* We loose the btarget, btaken state here so rexec the |
| 218 | branch. */ |
| 219 | env->pregs[PR_ERP] -= env->dslot; |
| 220 | /* Exception starts with dslot cleared. */ |
| 221 | env->dslot = 0; |
edgar_igl | b41f7df | 2008-05-02 22:16:17 +0000 | [diff] [blame] | 222 | } |
| 223 | |
edgar_igl | b41f7df | 2008-05-02 22:16:17 +0000 | [diff] [blame] | 224 | if (env->pregs[PR_CCS] & U_FLAG) { |
| 225 | /* Swap stack pointers. */ |
| 226 | env->pregs[PR_USP] = env->regs[R_SP]; |
| 227 | env->regs[R_SP] = env->ksp; |
| 228 | } |
| 229 | |
| 230 | /* Apply the CRIS CCS shift. Clears U if set. */ |
edgar_igl | e62b5b1 | 2008-03-14 01:04:24 +0000 | [diff] [blame] | 231 | cris_shift_ccs(env); |
Edgar E. Iglesias | 218951e | 2009-10-10 17:34:27 +0200 | [diff] [blame] | 232 | |
Edgar E. Iglesias | abdfd95 | 2010-09-16 15:40:27 +0200 | [diff] [blame] | 233 | /* Now that we are in kernel mode, load the handlers address. |
| 234 | This load may not fault, real hw leaves that behaviour as |
| 235 | undefined. */ |
Aurelien Jarno | cf7e0c8 | 2012-09-07 16:13:27 +0200 | [diff] [blame] | 236 | env->pc = cpu_ldl_code(env, env->pregs[PR_EBP] + ex_vec * 4); |
Edgar E. Iglesias | 218951e | 2009-10-10 17:34:27 +0200 | [diff] [blame] | 237 | |
Edgar E. Iglesias | abdfd95 | 2010-09-16 15:40:27 +0200 | [diff] [blame] | 238 | /* Clear the excption_index to avoid spurios hw_aborts for recursive |
| 239 | bus faults. */ |
| 240 | env->exception_index = -1; |
| 241 | |
Edgar E. Iglesias | 7a97735 | 2010-02-15 11:47:34 +0100 | [diff] [blame] | 242 | D_LOG("%s isr=%x vec=%x ccs=%x pid=%d erp=%x\n", |
| 243 | __func__, env->pc, ex_vec, |
edgar_igl | b41f7df | 2008-05-02 22:16:17 +0000 | [diff] [blame] | 244 | env->pregs[PR_CCS], |
| 245 | env->pregs[PR_PID], |
aliguori | d12d51d | 2009-01-15 21:48:06 +0000 | [diff] [blame] | 246 | env->pregs[PR_ERP]); |
ths | 81fdc5f | 2007-10-08 13:04:02 +0000 | [diff] [blame] | 247 | } |
| 248 | |
Andreas Färber | a1170bf | 2012-03-14 01:38:21 +0100 | [diff] [blame] | 249 | target_phys_addr_t cpu_get_phys_page_debug(CPUCRISState * env, target_ulong addr) |
ths | 81fdc5f | 2007-10-08 13:04:02 +0000 | [diff] [blame] | 250 | { |
ths | 81fdc5f | 2007-10-08 13:04:02 +0000 | [diff] [blame] | 251 | uint32_t phy = addr; |
Edgar E. Iglesias | 2fa73ec | 2009-04-25 15:51:53 +0200 | [diff] [blame] | 252 | struct cris_mmu_result res; |
ths | 81fdc5f | 2007-10-08 13:04:02 +0000 | [diff] [blame] | 253 | int miss; |
Edgar E. Iglesias | 3c4fe42 | 2010-07-05 10:24:56 +0200 | [diff] [blame] | 254 | |
Edgar E. Iglesias | 9f5a1fa | 2010-07-05 11:39:04 +0200 | [diff] [blame] | 255 | miss = cris_mmu_translate(&res, env, addr, 0, 0, 1); |
Edgar E. Iglesias | 3c4fe42 | 2010-07-05 10:24:56 +0200 | [diff] [blame] | 256 | /* If D TLB misses, try I TLB. */ |
| 257 | if (miss) { |
Edgar E. Iglesias | 9f5a1fa | 2010-07-05 11:39:04 +0200 | [diff] [blame] | 258 | miss = cris_mmu_translate(&res, env, addr, 2, 0, 1); |
Edgar E. Iglesias | 3c4fe42 | 2010-07-05 10:24:56 +0200 | [diff] [blame] | 259 | } |
| 260 | |
ths | 81fdc5f | 2007-10-08 13:04:02 +0000 | [diff] [blame] | 261 | if (!miss) |
| 262 | phy = res.phy; |
edgar_igl | e62b5b1 | 2008-03-14 01:04:24 +0000 | [diff] [blame] | 263 | D(fprintf(stderr, "%s %x -> %x\n", __func__, addr, phy)); |
ths | 81fdc5f | 2007-10-08 13:04:02 +0000 | [diff] [blame] | 264 | return phy; |
| 265 | } |
| 266 | #endif |